第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

建包以后 啟動失敗 提示找不到類

我本地JDK是1.7版本 但是spring使用的是4版本 之前在一個包下沒有什么問題,但是分開以后啟動mvn intall的時候就報錯(最后附錯誤信息),是不是spring4依賴的jdk1.8以上的版本 ?但是在沒有分開包的時候是沒有問題的 ,分開之后一直提示找不到類 但是實際是有的;


***************************
APPLICATION FAILED TO START
***************************

Description:

Field grilRespository in com.example.demo.CrilController2 required a bean of type 'com.example.respository.GrilRespository' that could not be found.


Action:

Consider defining a bean of type 'com.example.respository.GrilRespository' in your configuration.

2017-10-25 12:16:41.085 ERROR 56864 --- [?????????? main] o.s.test.context.TestContextManager????? : Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@28f270bc] to prepare test instance [com.example.demo.MySpringBootApplicationTests@5cf81994]

正在回答

1 回答

應該是沒有給你的GirlRepository使用@repository注解,導致注入失敗。

@Repository
public?interface?GirlRepository{
????
}


0 回復 有任何疑惑可以回復我~
#1

qq_向日葵_37 提問者

首先很謝謝你的回答,但是好像不是這個原因,我試著刪除pom中 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <version>1.5.6.RELEASE</version><!--$NO-MVN-MAN-VER$--> </dependency> 就好了,是我在引入@ConfigurationProperties注解時不小心引入的 但是為什么會造成以上的錯誤,我還是不知道
2017-10-26 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

建包以后 啟動失敗 提示找不到類

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號

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