救命啊,Field girlRepository in com.example.demo.GirlController required a bean of type 'com.example.demo.GirlRepository' that could not be found.
Field girlRepository in com.example.demo.GirlController required a bean of type 'com.example.demo.GirlRepository' that could not be found.
Action:
Consider defining a bean of type 'com.example.demo.GirlRepository' in your configuration.
以下是我的代碼
我還加上了 ComponentScan標簽,還是不行,網上的辦法搜了個遍,求大神幫忙啊,這是怎么回事,之前創建表的時候我沒建表也沒有報錯,是jpa的問題嗎?
2019-07-06
我也出現了同樣的問題,去除?ComponentScan標簽后,不再報錯
2018-09-13
2018-08-14
解決了嗎? ?? 我也是同樣的錯。
2018-05-24
我也出現了同樣的錯誤