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

Posted Arebirth

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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: \'*\'

 

 

以上是关于SpringBoot配置文件yml ScannerException: while scanning an alias *的主要内容,如果未能解决你的问题,请参考以下文章