SpringBoot配置文件yml ScannerException: while scanning an alias *

在使用yml编写配置我呢见

management:
  endpoints:
    web:
      base-path: /actuator
    jmx:
      exposure:
        include: *

报了如下错误

 

 

解决方案:

   给 * 加上 ''  变为 '*'

management:
  endpoints:
    web:
      base-path: /actuator
    jmx:
      exposure:
        include: '*'

 

 

posted @ 2019-12-01 15:59  Arebirth  阅读(1347)  评论(0编辑  收藏  举报