org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound character ‘@’ t

1、org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character ‘@’ that cannot start any token的解決方案

 一般有以下情況:

      1、在yml文件中配置了如下信息

    

spring:
  profiles:
    include: core
    active: @spring.profiles.active@

以获取父工程中属性,此时启动报错有可能是属性名未写对,还有一种可能是maven缓存了,没有生效,此时可以刷新maven(解决).


版权声明:本文为thefristking原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。