Idea--解决character ‘@‘ that cannot start any token. (Do not use @ for indentation

有时候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 install

1 个赞