我正在尝试将apring boot 1.2.5迁移到1.3.0.M2,得到以下异常...... 有什么建议吗?
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
答案 0 :(得分:2)
您可能遇到过错误,请参阅Duplicate bean definition for ServerProperties when using Spring Session in a hierarchical context。它将在1.3.0.RC1中修复。