请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

启动provider时报错

配置版本和老师是一模一样的, 老师麻烦帮忙看看 是什么原因导致的

container: org.springframework.beans.factory.support.DefaultListableBeanFactory@6daf2337, dubbo version: 3.2.0-beta.3, current host: 192.168.1.3
2023-08-21T22:22:51.148+08:00 WARN 8412 — [ main] o.s.boot.diagnostics.FailureAnalyzers : FailureAnalyzers [org.springframework.boot.autoconfigure.diagnostics.analyzer.NoSuchBeanDefinitionFailureAnalyzer,org.springframework.boot.autoconfigure.jdbc.DataSourceBeanCreationFailureAnalyzer,org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryBeanCreationFailureAnalyzer] implement BeanFactoryAware or EnvironmentAware. Support for these interfaces on FailureAnalyzers is deprecated, and will be removed in a future release. Instead provide a constructor that accepts BeanFactory or Environment parameters.
2023-08-21T22:22:51.152+08:00 ERROR 8412 — [ main] o.s.boot.SpringApplication : Application run failed

java.lang.NoClassDefFoundError: org/springframework/boot/jdbc/DataSourceInitializationMode
at java.base/java.lang.Class.getDeclaredFields0(Native Method) ~[na:na]
at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3297) ~[na:na]
at java.base/java.lang.Class.getDeclaredField(Class.java:2608) ~[na:na]
at org.springframework.boot.context.properties.bind.DefaultBindConstructorProviderConstructors.isInnerClass(DefaultBindConstructorProvider.java:147) [spring−boot−3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.bind.DefaultBindConstructorProviderConstructors.isInnerClass(DefaultBindConstructorProvider.java:147) ~[spring-boot-3.0.4.jar:3.0.4] at org.springframework.boot.context.properties.bind.DefaultBindConstructorProviderConstructors.isInnerClass(DefaultBindConstructorProvider.java:147) [springboot3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.bind.DefaultBindConstructorProviderConstructors.getCandidateConstructors(DefaultBindConstructorProvider.java:137) ~[spring-boot-3.0.4.jar:3.0.4]
at org.springframework.boot.context.properties.bind.DefaultBindConstructorProviderConstructors.getConstructors(DefaultBindConstructorProvider.java:105) [spring−boot−3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.bind.DefaultBindConstructorProvider.getBindConstructor(DefaultBindConstructorProvider.java:57) [spring−boot−3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.ConfigurationPropertiesBeanConstructors.getConstructors(DefaultBindConstructorProvider.java:105) ~[spring-boot-3.0.4.jar:3.0.4] at org.springframework.boot.context.properties.bind.DefaultBindConstructorProvider.getBindConstructor(DefaultBindConstructorProvider.java:57) ~[spring-boot-3.0.4.jar:3.0.4] at org.springframework.boot.context.properties.ConfigurationPropertiesBeanConstructors.getConstructors(DefaultBindConstructorProvider.java:105) [springboot3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.bind.DefaultBindConstructorProvider.getBindConstructor(DefaultBindConstructorProvider.java:57) [springboot3.0.4.jar:3.0.4]atorg.springframework.boot.context.properties.ConfigurationPropertiesBeanBindMethod.get(ConfigurationPropertiesBean.java:337) ~[s

正在回答 回答被采纳积分+3

1回答

Danny_Idea 2023-08-22 08:36:00

看起来像是缺少了某种类,看看是不是自己少加入了某些依赖,或者依赖的版本不对导致的

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号