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: '*'
重新启动项目,顺利启动。