-
2021-09-24 17:17:23.945 INFO 20532 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable . ____ _ __ _ _ 2021-09-24 17:17:25.276 INFO 20532 --- [ restartedMain] c.e.good_server.GoodServerApplication : No active profile set, falling back to default profiles: default Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'goodController': Unsatisfied dependency expressed through field 'goodService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'goodService': Unsatisfied dependency expressed through field 'gooddao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'gooddao' defined in file [E:\javaspring\demo\cloud-server\Good_server\target\classes\com\example\good_server\dao\Gooddao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method 'sqlSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker': Invocation of init method failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.IllegalAccessError-->class com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper$$EnhancerBySpringCGLIB$$b6bf9fdb cannot access its superclass com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper (com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper$$EnhancerBySpringCGLIB$$b6bf9fdb is in unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader @63eb789c; com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper is in unnamed module of loader 'app') 2021-09-24 17:18:26.035 ERROR 20532 --- [eoutChecker_2_1] i.s.c.r.netty.NettyClientChannelManager : Failed to get available servers: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c05151f has not been refreshed yet java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c05151f has not been refreshed yet 2021-09-24 17:18:36.042 ERROR 20532 --- [eoutChecker_2_1] i.s.c.r.netty.NettyClientChannelManager : Failed to get available servers: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c05151f has not been refreshed yet java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1c05151f has not been refreshed yet |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
但是打开之前写的Seata,又能注册到nacos上并运行。现在的都注册不到nacos上。 |
Beta Was this translation helpful? Give feedback.
-
对default类无法进行CGLIB代理,建议自己创建一个DriudDataSource的bean,而不是默认让Druid的自动装配去创建。 |
Beta Was this translation helpful? Give feedback.
-
druid那边已经修复了这个问题: |
Beta Was this translation helpful? Give feedback.
-
好的谢谢了大兄弟。有机会一定请你大保健 |
Beta Was this translation helpful? Give feedback.
好的谢谢了大兄弟。有机会一定请你大保健