spring cloud stream - Annotation-specified bean name 'errorPageFilter' for bean class -


using spring cloud stream, encounter following problem:

annotation-specified bean name 'errorpagefilter' bean class [org.springframework.boot.web.support.errorpagefilter] conflicts existing, non-compatible bean definition of same name , class [org.springframework.boot.context.web.errorpagefilter]

my spring cloud steam dependencies judged

 <dependency>     <groupid>org.springframework.cloud</groupid>     <artifactid>spring-cloud-stream-dependencies</artifactid>     <version>brooklyn.sr1</version>     <type>pom</type>     <scope>import</scope>  </dependency> 

this interesting scenario, hence posting @unixnothing 's comment community wiki answer.

this happens when application class defined in base package (in other words, without package declaration)

move classes package avoid such name conflicts.

please refer the spring boot documentation more details.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -