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

你可能感兴趣的:(java)