springboot yml文件@@報錯

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啓動會報這種問題。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章