欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-12-29 17:37:04
目录前景概要报错如下图解决方案以下内容也是因为这个应用名被修改后会出先的问题初始化spring bean 以及 sqlsession解决前景概要 在这个之前service_edu子模块下的功能是...

前景概要

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

报错如下图

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

解决方案

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

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

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

没有遇到可以忽略

初始化spring bean 以及 sqlsession

前提是:

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

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:\尚硅谷\在线教育项目\后端代码\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(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.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:\尚硅谷\在线教育项目\后端代码\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:\尚硅谷\在线教育项目\后端代码\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(<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.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(<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.release.jar:5.2.1.release]
... 62 common frames omitted

解决

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

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

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

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

上一篇:

下一篇: