Joseph
Joseph

Reputation: 3155

Spring boot 1.3 M2 failed to start the embedded container

I am trying to migrate a apring boot 1.2.5 to 1.3.0.M2, get the following exception... Any suggestions?

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.boot.autoconfigure.web.ServerProperties] is defined: expected single matching bean but found 2: serverProperties,server.CONFIGURATION_PROPERTIES
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1073)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:961)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:543)
... 38 more

Upvotes: 0

Views: 239

Answers (1)

hzpz
hzpz

Reputation: 7966

You might have run into a bug, see Duplicate bean definition for ServerProperties when using Spring Session in a hierarchical context. It will be fixed in 1.3.0.RC1.

Upvotes: 2

Related Questions