关于java:Idea解决character-‘‘-that-cannot

原文网址:​​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没有同步。 

办法

做完下边四步,肯定能解决。

  1. 重启IDEA
  2. maven clean
  3. maven compile
  4. maven package

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理