yml配置

报错信息
Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias
in 'reader', line 14, column 18:
include: *
^
expected alphabetic or numeric character, but found
(10)
in 'reader', line 14, column 19:
include: *
^

解决方案
yml中配置 * ,需要加 ’ ’
management:
endpoints:
web:
exposure:
include: ‘*‘
本文详细解析了在yml配置文件中使用通配符'*'导致的错误:org.yaml.snakeyaml.scanner.ScannerException,并提供了正确的解决方案。文章指出,在yml配置中,如果要使用'*',应该将其用单引号括起来。
9880

被折叠的 条评论
为什么被折叠?



