其他分享
首页 > 其他分享> > unexpected character found (0) in ‘reader‘, line 19, column 19: include: *

unexpected character found (0) in ‘reader‘, line 19, column 19: include: *

作者:互联网

unexpected character found (0) in ‘reader’, line 19, column 19: include: *

今天学习Spring Boot Actuator配置属性,其中一个属性(打开所有的监控点)management.endpoints.web.exposure.include=*,无论如何也无法运行 。

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

management:
  endpoints:
    web:
      exposure:
        include: *
启动项目提示标题错误,后台经过尝试和找度娘搜索,得知 *号 要加引号,也就是'*',
management:
  endpoints:
    web:
      exposure:
        include: '*'
重新启动项目,顺利启动。

标签:web,unexpected,19,character,endpoints,management,include,exposure
来源: https://blog.csdn.net/jj89929665/article/details/112437739