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

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

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)標題的錯誤,不知道如何處理,應用也起不來,大家誰有見過呀

正在回答

6 回答

Spring Boot 2.0 在配置文件application.yml中:

將?

girl:?

????cupSize:?

改成:

girl:?

????cup-size:?

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

還是不行,Re-run spring configuration annotation processor to update generated metadata
我版本是 spring boot 1.5.9

2 回復 有任何疑惑可以回復我~

首先判斷是否安裝了Lombok插件,安裝了重新啟動,然后判斷是否選擇了Enable annotation processing

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

我也遇到這個問題了。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


求大神幫忙.


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

這個只是讓你重新啟動一下idea,有數(shù)據的更新,不太影響使用


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

自己操作失誤,其實就只是一個提示,沒有影響應用的使用

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

舉報

0/150
提交
取消
2小時學會Spring Boot
  • 參與學習       151526    人
  • 解答問題       1132    個

Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序

進入課程

Re-run spring configuration annotation processor to update generated metadata

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

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

幫助反饋 APP下載

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

公眾號

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