原文网址:Idea–解决character ‘@‘ that cannot start any token. (Do not use @ for indentation_IT利刃出鞘的博客-CSDN博客
简介
本文介绍如何解决character ‘@‘ that cannot start any token. (Do not use @ for indentation这个问题。
分享Java技术星球(自学精灵),网址:learn.skyofit.com
问题形容
有时候,IDEA忽然运行不了我的项目了,之前是能够的,报错信息为:
21:34:05.973 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
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 5, column 13:
active: @env@
^
起因剖析
maven没有同步。
办法
做完下边四步,肯定能解决。
- 重启IDEA
- maven clean
- maven compile
- maven package
发表回复