Re-run spring configuration annotation processor to update generated metadata
package com.zqz;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* Created by I on 2017/9/13.
*/
@Component
@ConfigurationProperties(prefix="girl")
public class GirlProperties {
? ?private String cupSize;
? ?private Integer age;
? ?public String getCupSize() {
? ? ? ?return cupSize;
? ?}
? ?public void setCupSize(String cupSize) {
? ? ? ?this.cupSize = cupSize;
? ?}
? ?public Integer getAge() {
? ? ? ?return age;
? ?}
? ?public void setAge(Integer age) {
? ? ? ?this.age = age;
? ?}
}
pom.xml文件中添加
<dependency>
? <groupId>org.springframework.boot</groupId>
? <artifactId>spring-boot-configuration-processor</artifactId>
? <optional>true</optional>
</dependency>
之后就出現(xiàn)標題的錯誤,不知道如何處理,應用也起不來,大家誰有見過呀
2018-03-13
Spring Boot 2.0 在配置文件application.yml中:
將?
girl:?
????cupSize:?
改成:
girl:?
????cup-size:?
2018-01-02
還是不行,Re-run spring configuration annotation processor to update generated metadata
我版本是 spring boot 1.5.9
2017-12-22
首先判斷是否安裝了Lombok插件,安裝了重新啟動,然后判斷是否選擇了Enable annotation processing
2017-12-15
我也遇到這個問題了。spring-boot-configuration-processor引入沒用,重新啟動了IDEA也不行。
string-boot 是1.4.7
實體類加了這個也沒用:
????@Component
????@PropertySource("classpath:/application.yml")
????@ConfigurationProperties(prefix = "girl")
application.yml:
??????server:
????? port: 8080
?? ? ?gril:
? ?? cupSize: B
?????age: 18
Re-run spring configuration annotation processor to update generated metadata
求大神幫忙.
2017-11-03
這個只是讓你重新啟動一下idea,有數(shù)據的更新,不太影響使用
2017-09-13
自己操作失誤,其實就只是一個提示,沒有影響應用的使用