问题描述:
spring:
profiles:
active: @activatedProperties@
在yml读取pom.xml中定义的 profile变量
<profiles>
<!-- 开发环境 -->
<profile>
<id>dev</id>
<properties>
<activatedProperties>dev</activatedProperties>
</properties>
</profile>
</profiles>
错误描述:
Caused by: org.yaml.snakeyaml.scanner.ScannerException:
while scanning for the next token found character '@' that cannot start any token.
(Do not use @ for indentation)
解决方法:
在右侧的maven栏中重新reload的一下就行了
版权声明:本文为lwd18175239125原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。