Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that no log output ends directly after the springboot project is started?

Shulou Source: shulou.com Published: 2022-06-02 06:06:55 09月25日 Update

This article mainly introduces how to solve the problem of the direct end of no log output after the start of the springboot project, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Summary of prospects

Before this, there was no problem with the function under the service_ Edu sub-module.

The creation of the service_ OS submodule failed many times, affecting the pom.xml of the previously normal service_edu module

Link: IDEA creates a Maven project that always shows problems that are being loaded

There is no need to find out the whole context, to see if your mistake is consistent with the following effect

The error is as shown in the following picture

Solution

Delete the target directory and clean up the maven subproject again using mvn clean

Delete the target directory and clean up the maven subproject again using mvn clean

The following is also due to the problem that the application name will be changed first.

No encounter can be ignored.

Initialize spring bean and sqlsession

The premise is:

There is no new sub-module service_oss for this module function, and there are no functional errors, but the following error occurs at startup

Org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherController': Unsatisfied dependency expressed through field' eduTeacherService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherServiceImpl': Unsatisfied dependency expressed through field' baseMapper' Nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherMapper' defined in file [F:\ Silicon Valley\ online Education Project\ backend Code\ demo\ guli_parent\ service\ service_edu\ target\ classes\ com\ atguigu\ eduservice\ mapper\ EduTeacherMapper.class]: Unsatisfied dependency expressed through bean property' sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed Nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:116) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:397) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1429) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:594) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:517) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:323) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:321) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:879) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:878) ~ [spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:550) ~ [spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:141) ~ [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At org.springframework.boot.SpringApplication.refresh (SpringApplication.java:747) [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:397) [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:315) [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1226) [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At org.springframework.boot.SpringApplication.run (SpringApplication.java:1215) [spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE]

At com.atguigu.eduservice.EduApplication.main (EduApplication.java:12) [classes/:na]

At sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethod) ~ [na:1.8.0_191]

At sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) ~ [na:1.8.0_191]

At sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) ~ [na:1.8.0_191]

At java.lang.reflect.Method.invoke (Method.java:498) ~ [na:1.8.0_191]

At org.springframework.boot.devtools.restart.RestartLauncher.run (RestartLauncher.java:49) [spring-boot-devtools-2.2.1.RELEASE.jar:2.2.1.RELEASE]

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherServiceImpl': Unsatisfied dependency expressed through field' baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherMapper' defined in file [F:\ Silicon Valley\ online Education Project\ backend Code\ demo\ guli_parent\ service\ service_edu\ target\ classes\ com\ atguigu\ eduservice\ mapper\ EduTeacherMapper.class]: Unsatisfied dependency expressed through bean property' sqlSessionFactory' Nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method' sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:639) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:116) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties (AutowiredAnnotationBeanPostProcessor.java:397) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1429) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:594) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:517) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:323) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:321) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1287) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1207) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:636) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

... 24 common frames omitted

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduTeacherMapper' defined in file [F:\ Silicon Valley\ online Education Project\ back end Code\ demo\ guli_parent\ service\ service_edu\ target\ classes\ com\ atguigu\ eduservice\ mapper\ EduTeacherMapper.class]: Unsatisfied dependency expressed through bean property' sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed Nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType (AbstractAutowireCapableBeanFactory.java:1533) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1413) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:594) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:517) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:323) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:321) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1287) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1207) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:636) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

... 37 common frames omitted

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method' sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:645) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:625) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1338) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1177) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:557) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:517) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:323) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:321) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:202) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate (DependencyDescriptor.java:276) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1287) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1207) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType (AbstractAutowireCapableBeanFactory.java:1518) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

... 48 common frames omitted

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:185) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:640) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

... 61 common frames omitted

Caused by: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail! Cause:com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: Get proxy targetObject exception! Cause:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method' dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

At com.baomidou.mybatisplus.core.toolkit.ExceptionUtils.mpe (ExceptionUtils.java:51) ~ [mybatis-plus-core-3.0.5.jar:na]

At com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory (MybatisSqlSessionFactoryBean.java:602) ~ [mybatis-plus-extension-3.0.5.jar:na]

At com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.afterPropertiesSet (MybatisSqlSessionFactoryBean.java:386) ~ [mybatis-plus-extension-3.0.5.jar:na]

At com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.getObject (MybatisSqlSessionFactoryBean.java:683) ~ [mybatis-plus-extension-3.0.5.jar:na]

At com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.sqlSessionFactory (MybatisPlusAutoConfiguration.java:165) ~ [mybatis-plus-boot-starter-3.0.5.jar:na]

At com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$eb46d0de.CGLIB$sqlSessionFactory$1 () ~ [mybatis-plus-boot-starter-3.0.5.jar:na]

At com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$eb46d0de$$FastClassBySpringCGLIB$$f1369970.invoke () ~ [mybatis-plus-boot-starter-3.0.5.jar:na]

At org.springframework.cglib.proxy.MethodProxy.invokeSuper (MethodProxy.java:244) ~ [spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:363) ~ [spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]

At com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$eb46d0de.sqlSessionFactory () ~ [mybatis-plus-boot-starter-3.0.5.jar:na]

At sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethod) ~ [na:1.8.0_191]

At sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) ~ [na:1.8.0_191]

At sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) ~ [na:1.8.0_191]

At java.lang.reflect.Method.invoke (Method.java:498) ~ [na:1.8.0_191]

At org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:154) ~ [spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]

... 62 common frames omitted

Solve

This service_edu prompts you to initialize spring bean. Sqlsession failed. Before that, there was no problem with the functions under the service_ Edu sub-module. Check the dependencies of this sub-module.

Check the dependencies of the project module, cut pom.xml configuration and re-paste and import

Delete the target directory and clean up the maven subproject again using mvn clean

Thank you for reading this article carefully. I hope the article "how to solve the problem of no log output ending directly after the start of the springboot project" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Modules questions projects functions engineering articles code online education methods directories Silicon Valley online education logs output errors checks context no size Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information NVidia Linux Shulou Technology