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: '*'
原文地址:https://www.cnblogs.com/arebirth/p/springbootaliasdubboquot.html