记录异常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文件中点击鼠标右键选择重构项目,然后就解决了,就这么简单。
本文记录了一次Spring Boot项目启动时报错的问题解决过程。主要错误为YAML配置文件中的非法字符导致解析失败,通过清理配置文件并重新构建Maven项目最终解决了问题。
2995

被折叠的 条评论
为什么被折叠?



