spring-cloud-config-admin icon indicating copy to clipboard operation
spring-cloud-config-admin copied to clipboard

SpringBoot2.x不兼容

Open linzhiqiang0514 opened this issue 5 years ago • 2 comments

Caused by: org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanTypeDeductionException: Failed to deduce bean type for com.didispace.scca.rest.SccaRestAutoConfiguration.errorAttributes at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanTypeForBeanMethod(OnBeanCondition.java:496) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.addDeducedBeanType(OnBeanCondition.java:483) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.(OnBeanCondition.java:435) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanSearchSpec.(OnBeanCondition.java:416) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:158) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-2.1.3.RELEASE.jar:2.1.3.RELEASE] ... 17 more Caused by: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.web.ErrorAttributes at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_72] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_72] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_72] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_72] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_72] at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_72]

使用SpringBoot 2.x,存在类不兼容,这个类在1.x和2.x的路径不一样。

linzhiqiang0514 avatar Mar 10 '19 07:03 linzhiqiang0514

我了发现这个问题,程序员DD好像不升级了

qq282485068 avatar May 12 '19 01:05 qq282485068

是啊。好像都没动静了。

linzhiqiang0514 avatar Jun 25 '19 06:06 linzhiqiang0514