亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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 關注
  • 6274 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號