springboot报错org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character '@' t
方案一:此时在pom文件中添加snakeyaml插件。
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</dependency>
方案二:idea工具打开file-settings-plugins中搜索yaml。安装yaml插件也可以
当项目使用maven打成war包放在tomcat下是没有问题的。只是开发者采用springboot启动会报这种问题。
最后
以上就是平常帽子最近收集整理的关于springboot yml文件@@报错的全部内容,更多相关springboot内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复