org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias in 'reader', line 5, column 18: include: *


今天學習Spring Boot Actuator配置屬性,其中一個屬性(打開所有的監控點)management.endpoints.web.exposure.include=*,看文檔說明如下:

 

 然后我使用yml進行如下配置:

management:
endpoints:
web:
exposure:
include: *
啟動項目提示標題錯誤,后台經過嘗試和找度娘搜索,得知 *號 要加引號,也就是'*',
management:
endpoints:
web:
exposure:
include: '*'
重新啟動項目,順利啟動。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM