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

简单来说就是启动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

冉冉说
浏览 5995回答 1
1回答

慕婉清6462132

老哥我也是这样毕设就是做这个折腾了一天原因是 依赖的问题<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所以你改一下依赖就好了,两个记得要配对
打开App,查看更多内容
随时随地看视频慕课网APP