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