spring boot configuration annotation processor not found in classpath
Description:
Field girlProperties in com.imooc.HelloController required a bean of type 'com.imooc.GirlProperties' that could not be found.
Action:
Consider defining a bean of type 'com.imooc.GirlProperties' in your configuration.
誰知道是為什么呀?
2020-12-20
這個怎么解決啊
2019-12-11
spring-boot-configuration-processor加了這個依賴,鼠標也能點進去查看,但是右側maven那里卻顯示沒有加載下來
2018-02-17
2018-01-02
親測有效,那些說沒用的同學你確定你其他地方沒有出錯?
在pom.xml導入依賴
2017-12-30
我從C#轉java? 目前在自學,遇到了一樣的問題,在pom.xml中添加dependency也是不行
2017-12-26
一樣,黑色變成了紅色,還是報錯
2017-12-19
.....這個問題是那個girlProperties類沒注入到Spring容器里,需要在該類上添加注解@component。
2017-12-18
加了依賴之后也只是提示從紅色變成了黑色,并沒有消失,你的消失了嗎
2017-08-19
添加依賴之后怎么弄啊?
2017-04-13
只需要在pom.xml添加一個依賴,如下:
<dependency>
? <groupId>org.springframework.boot</groupId>
? <artifactId>spring-boot-configuration-processor</artifactId>
? <optional>true</optional>
</dependency>