將application.properties 改成 application.yml
將.properties換成了.yml格式項目無法運行報錯ERROR 25300 --- [ ? ? ? ? ? main] o.s.boot.SpringApplication ? ? ? ? ? ? ? : Application startup failed
將.properties換成了.yml格式項目無法運行報錯ERROR 25300 --- [ ? ? ? ? ? main] o.s.boot.SpringApplication ? ? ? ? ? ? ? : Application startup failed
2017-11-06
舉報
2017-11-06
看一下是不是.yml文件中的配置寫錯了
server:
????????port: 8080
cupSize: B
注意cupSize前不要空格
2017-11-06
server:
?port: 8082
?context-path: /girl
?gril:
? cupSize: B
? age: 18
2017-11-06
看哈你前面的屬性有沒有變亮?是灰色的就是有錯誤
2017-11-06
檢查一下,值的前面必須有一個空格