- maven : 13.8.11
- idea: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
如图:



