Skip to content

Commit

Permalink
Merge pull request #80
Browse files Browse the repository at this point in the history
develop
  • Loading branch information
MichiBaum authored Nov 4, 2024
2 parents 5077b5c + a3bbeb4 commit 73b5e88
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gateway-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<appender-ref ref="Discord" />
</logger>

<logger name="javax.net.ssl" level="OFF">

</logger>


<!-- <logger name="org.springframework.cloud.gateway" level="TRACE">-->
<!-- <appender-ref ref="Console" />-->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.michibaum.registry_service.security

import feign.codec.Decoder
import feign.codec.Encoder
import org.springframework.beans.factory.ObjectFactory
import org.springframework.boot.autoconfigure.http.HttpMessageConverters
import org.springframework.cloud.openfeign.support.SpringDecoder
import org.springframework.cloud.openfeign.support.SpringEncoder
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
* https://github.com/spring-cloud/spring-cloud-openfeign/issues/235
* fanticat opened this issue on Oct 22, 2019 · 10 comments
*/
@Configuration
class FeignResponseCoderConfig {

private val messageConverters = ObjectFactory { HttpMessageConverters() }

@Bean
fun feignEncoder(): Encoder {
return SpringEncoder(messageConverters)
}

@Bean
fun feignDecoder(): Decoder {
return SpringDecoder(messageConverters)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.michibaum.websiteservice.security

import feign.codec.Decoder
import feign.codec.Encoder
import org.springframework.beans.factory.ObjectFactory
import org.springframework.boot.autoconfigure.http.HttpMessageConverters
import org.springframework.cloud.openfeign.support.SpringDecoder
import org.springframework.cloud.openfeign.support.SpringEncoder
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
* https://github.com/spring-cloud/spring-cloud-openfeign/issues/235
* fanticat opened this issue on Oct 22, 2019 · 10 comments
*/
@Configuration
class FeignResponseCoderConfig {

private val messageConverters = ObjectFactory { HttpMessageConverters() }

@Bean
fun feignEncoder(): Encoder {
return SpringEncoder(messageConverters)
}

@Bean
fun feignDecoder(): Decoder {
return SpringDecoder(messageConverters)
}
}

0 comments on commit 73b5e88

Please sign in to comment.