org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tok

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character ‘@’ that cannot start any token.

 
            预发布环境
            
                pre
            
            
                false
            
        

在pom里面加了各个环境动态指定,类似上面那样

spring:
  profiles:
    active: @environment@

然后再yml使用上面指定 假使spring.profiles.active跟 下的不一致就会出现上面的错误

你可能感兴趣的:(java)