<article class=“article fmt article-content”><p>原文网址:Idea–解决character ‘@‘ that cannot start any token. (Do not use @ for indentation_IT利刃出鞘的博客-CSDN博客</p><h2>简介</h2><p>本文介绍如何解决character ‘@‘ that cannot start any token. (Do not use @ for indentation这个问题。</p><p>分享Java技术星球(自学精灵),网址:learn.skyofit.com</p><h2>问题形容</h2><p>有时候,IDEA忽然运行不了我的项目了,之前是能够的,报错信息为:</p><pre><code>21:34:05.973 [main] ERROR org.springframework.boot.SpringApplication - Application run failedorg.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound character ‘@’ that cannot start any token. (Do not use @ for indentation) in ‘reader’, line 5, column 13: active: @env@ ^</code></pre><h2>起因剖析</h2><p>maven没有同步。 </p><h2>办法</h2><p>做完下边四步,肯定能解决。</p><ol><li>重启IDEA</li><li>maven clean</li><li>maven compile</li><li>maven package</li></ol></article>