简单来说就是启动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
1 回答
慕婉清6462132
TA贡献1804条经验 获得超2个赞
老哥我也是这样毕设就是做这个折腾了一天原因是 依赖的问题
<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
所以你改一下依赖就好了,两个记得要配对
- 1 回答
- 0 关注
- 6175 浏览
添加回答
举报
0/150
提交
取消