首页 > 作文

springboot 项目启动后无日志输出直接结束的解决

更新时间:2023-04-04 03:55:29 阅读: 评论:0

目录
前景概要报错如下图解决方案以下内容也是因为这个应用名被修改后会出先的问题初始化spring bean 以及 sqlssion解决

前景概要

在这个之前rvice_edu子模块下的功能是没有任何问题,创建了rvice_oss子模块之前失败了很多次,影响到了之前原本正常的rvice_edu模块的pom.xml链接: idea创建maven项目一直显示正在加载的问题

不用弄清楚来龙去脉,看你的错误是否符合 如下效果图

报错如下图

解决方案

target目录删除掉,再用mvn clean 方式清理一次该maven子工程把target目录删除掉,再用mvn clean 方式清理一次该maven子工程

以下内容也是因为这个应用名被修改后会出先的问题

没有遇到可以忽略

初始化spring bean 以及 sqlssion

前提是:

这个模块功能再没有新建子模块rvice_oss没有任何功能错误,但是启动时候出现如下报错

org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteachercontroller’: unsatisfied dependency expresd through field ‘eduteacherrvice’; nested exception is org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteacherrviceimpl’: unsatisfied dependency expresd through field ‘bamapper’; nested exception is org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteachermapper’ defined in file [f:\尚硅谷\在线教育项目\后端代码\demo\guli_parent\rvice\rvice_edu\target\class\com\atguigu\edurvice\mapper\eduteachermapper.class]: unsatisfied dependency expresd through bean property ‘sqlssionfactory’; nested exception is org.springframework.beans.factory.beancreationexception: error creating bean with name ‘sqlssionfactory’ 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.ssion.sqlssionfactory]: factory method ‘sqlssionfactory’ threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:116) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocessproperties(autowiredannotationbeanpostprocessor.java:397) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1429) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:594) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:517) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory.java:323) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:321) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:879) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:878) ~[spring-context-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:550) ~[spring-context-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.boot.web.rvlet.context.rvletwebrverapplicationcontext.refresh(rvletwebrverapplicationcontext.java:141) ~[spring-boot-2.2.1.relea.jar:2.2.1.relea]
at org.springframework.boot.springapplication.refresh(springapplication.java:747) [spring-boot-2.2.1.relea.jar:2.2.1.relea]
at org.springframework.boot.springapplication.refreshcontext(springapplication.java:397) [spring-boot-2.2.1.relea.jar:2.2.1.relea]
at org.springframework.boot.springapplication.run(springapplication.java:315) [spring-boot-2.2.1.relea.jar:2.2.1.relea]
at org.springframework.boot.springapplication.run(springapplication.java:1226) [spring-boot-2.2.1.relea.jar:2.2.1.relea]
at org.springframework.boot.springapplication.run(springapplication.java:1215) [spring-boot-2.2.1.relea.jar:2.2.1.relea]
at com.atguigu.edurvice.eduapplication.main(eduapplication.java:12) [class/:na]
at sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[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.relea.jar:2.2.1.relea]
caud by: org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteacherrviceimpl’: unsatisfied dependency expresd through field ‘bamapper’; nested exception is org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteachermapper’ defined in file [f:\尚硅谷\在线教育项目\后端代码\demo\guli_parent\rvice\rvice_edu\target\class\com\atguigu\edurvice\mapper\eduteachermapper.class]: unsatisfied dependency expresd through bean property ‘sqlssionfactory’; nested exception is org.springframework.beans.factory.beancreationexception: error creating bean with name ‘sqlssionfactory’ 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.ssion.sqlssionfactory]: factory method ‘sqlssionfactory’ threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:116) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocessproperties(autowiredannotationbeanpostprocessor.java:397) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1429) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:594) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:517) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory.java:323) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:321) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor.java:276) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1287) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:1207) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:636) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
… 24 common frames omitted
caud by: org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name ‘eduteachermapper’ defined in file [f:\尚硅谷\在线教育项目\后端代码\demo\guli_parent\rvice\rvice_edu\target\class\com\atguigu\edurvice\mapper\eduteachermapper.class]: unsatisfied dependency expresd through bean property ‘sqlssionfactory’; nested exception is org.springframework.beans.factory.beancreationexception: error creating bean with name ‘sqlssionfactory’ 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.ssion.sqlssionfactory]: factory method ‘sqlssionfactory’ threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1413) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:594) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:517) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory.java:323) 瀑布的诗句~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:321) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor.java:276) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1287) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:1207) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:636) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
… 37 common frames omitted
caud by: org.springframework.beans.factory.beancreationexception: error creating bean with name ‘sqlssionfactory’ 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.ssion.sqlssionfactory]: factory method ‘sqlssionfactory’ threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.constructorresolver.instantiateusin渡荆门送别gfactorymethod(constructorresolver.java:625) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiateusingfact温庭筠简介orymethod(abstractautowirecapablebeanfactory.java:1338) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1177) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:557) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:517) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.lambda$dogetbean$0(abstractbeanfactory.java:323) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:321) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.config.dependencydescriptor.resolvecandidate(dependencydescriptor.java:276) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1287) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:1207) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
at org.springframewo青虾仁怎么做好吃rk.beans.factory.support.abstractautowirecapablebeanfactory.autowirebytype(abstractautowirecapablebeanfactory.java:1518) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
… 48 common frames omitted
caud by: org.springframework.beans.beaninstantiationexception: failed to instantiate [org.apache.ibatis.ssion.sqlssionfactory]: factory method ‘sqlssionfactory’ threw exception; nested exception is com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.relea.jar:5.2.1.relea]
at org.springframework.beans.factory.support.constructorresolver.instantiate(constructorresolver.java:640) ~[spring-beans-5.2.1.relea.jar:5.2.1.relea]
… 61 common frames omitted
caud by: com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: globalconfigutils tmetadata fail ! cau:com.baomidou.mybatisplus.core.exceptions.mybatispluxception: error: get proxy targetobject exception ! cau: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.mybatissqlssionfactorybean.buildsqlssionfactory(mybatissqlssionfactorybean.java:602) ~[mybatis-plus-extension-3.0.5.jar:na]
at com.baomidou.mybatisplus.extension.spring.mybatissqlssionfactorybean.afterpropertiest(mybatissqlssionfactorybean.java:386) ~[mybatis-plus-extension-3.0.5.jar:na]
at com.baomidou.mybatisplus.extension.spring.mybatissqlssionfactorybean.getobject(mybatissqlssionfactorybean.java:683) ~[mybatis-plus-extension-3.0.5.jar:na]
at com.baomidou.mybatisplus.autoconfigure.mybatisplusautoconfiguration.sqlssionfactory(mybatisplusautoconfiguration.java:165) ~[mybatis-plus-boot-starter-3.0.5.jar:na]
at com.baomidou.mybatisplus.autoconfigure.mybatisplusautoconfiguration$$enhancerbyspringcglib$$eb46d0de.cglib$sqlssionfactory$1(<generated>) ~[mybatis-plus-boot-starter-3.0.5.jar:na]
at com.baomidou.mybatisplus.autoconfigure.mybatisplusautoconfiguration$$enhancerbyspringcglib$$eb46d0de$$fastclassbyspringcglib$$f1369970.invoke(<generated>) ~[mybatis-plus-boot-starter-3.0.5.jar:na]
at org.springframework.cglib.proxy.methodproxy.invokesuper(methodproxy.java:244) ~[spring-core-5.2.1.relea.jar:5.2.1.relea]
at org.springframework.context.a副主任述职报告nnotation.configurationclasnhancer$beanmethodinterceptor.intercept(configurationclasnhancer.java:363) ~[spring-context-5.2.1.relea.jar:5.2.1.relea]
at com.baomidou.mybatisplus.autoconfigure.mybatisplusautoconfiguration$$enhancerbyspringcglib$$eb46d0de.sqlssionfactory(<generated>) ~[mybatis-plus-boot-starter-3.0.5.jar:na]
at sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[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.relea.jar:5.2.1.relea]
… 62 common frames omitted

解决

这个rvice_edu提示初始化spring bean, sqlssion失败,在这个之前rvice_edu子模块下的功能是没有任何问题,检查这个子模块的依赖

检查 该工程模块的依赖关系,剪切pom.xml配置重新粘贴导入

target目录删除掉,再用mvn clean 方式清理一次该maven子工程

以上为个人经验,希望能给大家一个参考,也希望大家多多支持www.887551.com。

本文发布于:2023-04-04 03:55:27,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/2ef0c50b4e11eb765b7487792c563cd4.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:springboot 项目启动后无日志输出直接结束的解决.doc

本文 PDF 下载地址:springboot 项目启动后无日志输出直接结束的解决.pdf

标签:模块   硅谷   没有任何   再用
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图