課程
/后端開發
/Java
/2小時學會Spring Boot
為什么報錯Spring Boot Configuration Annotation Processor 什么的
2018-04-23
源自:2小時學會Spring Boot 3-1
正在回答
cupSize和age空一格兩格都行,要么都空一格,要么都兩格,這個是相對與girl空格的
server: ??port:?8080 girl: ??cupSize:?B ???age:?18
配置文件要寫成這樣,girl的屬性要另起一行并空兩格
同問,添加依賴以后又有新的提示:Re-run Spring Boot Configuration Annotation Processor to update generated metadata,重啟服務器和idea都沒用
首先確保proptities文件中有添加@Component
其次在pom.xml導入依賴
<dependency> ??<groupId>org.springframework.boot</groupId> ??<artifactId>spring-boot-configuration-processor</artifactId> ??<optional>true</optional> </dependency> 如果還是不行請檢查環境是否和老師的環境一致,mvn版本、jdk版本等等。
qq_白衣不與時光老_0
@Component
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-05-29
cupSize和age空一格兩格都行,要么都空一格,要么都兩格,這個是相對與girl空格的
2018-05-29
配置文件要寫成這樣,girl的屬性要另起一行并空兩格
2018-04-28
同問,添加依賴以后又有新的提示:Re-run Spring Boot Configuration Annotation Processor to update generated metadata,重啟服務器和idea都沒用
2018-04-24
首先確保proptities文件中有添加@Component
其次在pom.xml導入依賴
2018-04-24
@Component