报错:while scanning for the next tokenfound character ‘@‘ that cannot start any token.in ‘reader‘, lin

记录异常springboot启动报错

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 15, column 13:
        active: @profiles.active@

 之前启动一直可以使用,没有错误,突然有一天不能启动了,尝试了很多办法都不行,然后想到会不会是maven的问题,然后在pom文件中点击鼠标右键选择重构项目,然后就解决了,就这么简单。

猜你喜欢

转载自blog.csdn.net/cccsssrrr/article/details/128327165