Skip to content

Commit

Permalink
fix: add WebClient Config Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Jul 16, 2024
1 parent 17b989e commit 00dfdc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ package com.hero.alignlab.client.fcm.client

import com.hero.alignlab.client.fcm.config.FcmProperties
import io.github.oshai.kotlinlogging.KotlinLogging
import org.springframework.web.reactive.function.client.WebClient

class ReactiveFcmClient(fcmProperties: FcmProperties) : FcmClient {
class ReactiveFcmClient(
fcmProperties: FcmProperties,
webClient: WebClient,
) : FcmClient {
private val logger = KotlinLogging.logger {}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.hero.alignlab.client.fcm.config

import com.hero.alignlab.client.WebClientFactory
import com.hero.alignlab.client.fcm.client.FcmClient
import com.hero.alignlab.client.fcm.client.ReactiveFcmClient
import org.springframework.boot.context.properties.ConfigurationProperties
Expand All @@ -12,7 +13,11 @@ import org.springframework.context.annotation.Configuration
class FcmConfig {
@Bean
fun fcmClient(fcmProperties: FcmProperties): FcmClient {
return ReactiveFcmClient(fcmProperties)
return ReactiveFcmClient(
fcmProperties = fcmProperties,
// 향후, 변경 작업 진행 필요.
webClient = WebClientFactory.generate(baseUrl = "http://localhost:8080")
)
}
}

Expand Down

0 comments on commit 00dfdc7

Please sign in to comment.