我是靠谱客的博主 超级鸭子,最近开发中收集的这篇文章主要介绍while scanning an alias in ‘reader‘, line 17, column 18: include: *,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
在使用nacos + openfeign配置暴露端口时报错:
10:02:55.601 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias
in 'reader', line 17, column 18:
include: *
^
unexpected character found (32)
in 'reader', line 17, column 19:
include: *
^
at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1432)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:916)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:364)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:136)
at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:257)
at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:248)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:236)
原因是使用的时yml配置:
原配置写法:
management:
endpoints:
web:
exposure:
#暴露所有web端点
include: *
如何解决,* 添加单引号引起来:
management:
endpoints:
web:
exposure:
#暴露所有web端点
include: '*'
最后
以上就是超级鸭子为你收集整理的while scanning an alias in ‘reader‘, line 17, column 18: include: *的全部内容,希望文章能够帮你解决while scanning an alias in ‘reader‘, line 17, column 18: include: *所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复