- Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. + Licensed under MIT License Copyright (c) 2022-2023 Raja Kolli.
***/ @@ -28,8 +28,8 @@ ObservedAspect observedAspect(ObservationRegistry observationRegistry) { } @Bean - WebClient webClient() { - return WebClient.builder() + WebClient webClient(WebClient.Builder webClientBuilder) { + return webClientBuilder .defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) .baseUrl(applicationProperties.getInventoryServiceUrl()) diff --git a/catalog-service/src/main/resources/application.properties b/catalog-service/src/main/resources/application.properties index 50fe748b..622c6088 100644 --- a/catalog-service/src/main/resources/application.properties +++ b/catalog-service/src/main/resources/application.properties @@ -3,8 +3,6 @@ server.port=18080 spring.webflux.base-path=/${spring.application.name} -spring.config.import=optional:configserver:${CONFIG_SERVER:http://localhost:8888}/ - # spring.kafka.bootstrap-servers=localhost:9092 spring.kafka.producer.key-serializer=org.apache.kafka.common.serialization.StringSerializer spring.kafka.producer.value-serializer=org.springframework.kafka.support.serializer.JsonSerializer diff --git a/catalog-service/src/main/resources/logback-spring.xml b/catalog-service/src/main/resources/logback-spring.xml index c5269b8c..a8f1a904 100644 --- a/catalog-service/src/main/resources/logback-spring.xml +++ b/catalog-service/src/main/resources/logback-spring.xml @@ -4,20 +4,15 @@