报错:found character ‘@‘ that cannot start any token. (Do not use @ for indentation) bootstrap.yml

springboot项目的配置文件,bootstrap.yml,在引用pom.xml中的内容值时,编译报错,但实际中并不影响代码运行,如下图:

报错:found character ‘@‘ that cannot start any token. (Do not use @ for indentation) bootstrap.yml_第1张图片

 解决方法:

原因是yml文件无法解析特殊字符“@”,需要用单引号或双引号将@@之间的内容括起来即可。

报错:found character ‘@‘ that cannot start any token. (Do not use @ for indentation) bootstrap.yml_第2张图片

你可能感兴趣的:(springboot,spring,java,eclipse)