springboot启动的一个错误,请问该怎么解决!
简单来说就是启动springboot的时候,关于其一个依赖包报错了,异常信息如下:org.springframework.beans.factory.BeanCreati...
简单来说就是启动springboot的时候,关于其一个依赖包报错了,异常信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserServiceImpl' defined in URL [jar:file: ../com/legend/module/legend-system-service/0.0.1-SNAPSHOT/legend-system-service-0.0.1-SNAPSHOT.jar!/com/legend/module/system/service/impl/SysUserServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Unexpected AOP exception; nested exception is java.lang.IllegalStateException: Unable to load cache item 展开
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserServiceImpl' defined in URL [jar:file: ../com/legend/module/legend-system-service/0.0.1-SNAPSHOT/legend-system-service-0.0.1-SNAPSHOT.jar!/com/legend/module/system/service/impl/SysUserServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Unexpected AOP exception; nested exception is java.lang.IllegalStateException: Unable to load cache item 展开
1个回答
展开全部
老哥我也是这样毕设就是做这个折腾了一天原因是 依赖的问题
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version></parent><dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency></dependencies>
这个parent 和下面那个web的约束要匹配我之前分开来取的,然后就是tomcat启动访问404
所以你改一下依赖就好了,两个记得要配对
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.9.RELEASE</version></parent><dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency></dependencies>
这个parent 和下面那个web的约束要匹配我之前分开来取的,然后就是tomcat启动访问404
所以你改一下依赖就好了,两个记得要配对
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |