SpringBoot-错误:Caused by: org.yaml.snakeyaml.scanner.ScannerException

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/M_Joes_17/article/details/80899274

错误:Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
        found character '@' that cannot start any token. (Do not use @ for indentation)
        in 'reader', line 3, column 13:active: @package.environment@


解决方法:添加以下依赖

<dependency> 
  <groupId>org.yaml</groupId> 
  <artifactId>snakeyaml</artifactId> 
  <version>${snakeyaml.version}</version> 
</dependency> 


猜你喜欢

转载自blog.csdn.net/M_Joes_17/article/details/80899274