环境
maven
: 13.8.11idea
:IntelliJ IDEA 2021.3.2 (Ultimate Edition)
错误代码
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@
^
解决方法
每次使用
idea
右侧的maven
工具更改环境后
需要重新加载maven projects
如图: