mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
240 stars 54 forks source link

Unable to start Charon due to problem with dual ServerProperties bean #50

Closed jecuendet closed 6 years ago

jecuendet commented 6 years ago

We have an application embedding Spring Cloud Zuul (Intelligent microservices reverse proxy) If we add Charon to this application, it'won't start anymore. It fail with the error:

`


APPLICATION FAILED TO START


Description: Field server in com.github.mkopylec.charon.configuration.CharonConfiguration required a single bean, but 2 were found:

We have workaround it by excluding CharonConfiguration @SpringBootApplication(exclude = {CharonConfiguration.class}) And adding our copy-paste version, while removing ServerProperties here: @EnableConfigurationProperties({CharonProperties.class})

mkopylec commented 6 years ago

Fixed in 2.4.0