org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token

问题描述:

spring:
  profiles:
    active: @activatedProperties@

在yml读取pom.xml中定义的 profile变量

   <profiles>
        
        <profile>
            <id>devid>
            <properties>
                <activatedProperties>devactivatedProperties>
            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的一下就行了

你可能感兴趣的:(SpringBoot)