为了账号安全,请及时绑定邮箱和手机立即绑定

springboot启动的一个错误,请问该怎么解决!

springboot启动的一个错误,请问该怎么解决!

冉冉说 2018-07-06 11:11:04
简单来说就是启动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
所以你改一下依赖就好了,两个记得要配对

查看完整回答
反对 回复 2018-07-29
  • 1 回答
  • 0 关注
  • 5994 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信