早上项目无法启动
一、报错信息如下:
09:39:03.212 [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: @environment@
^
前一天我在pom文件中加入一下配置i
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
项目当时没有问题,我上面加入的配置也起作用了。我还多次重启项目!!!
第二天项目无法启动,后发现是昨天新增配置有问题,后续修改昨天的配置
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<!--开启过滤,用指定的参数替换directory下的文件中的参数-->
<filtering>true</filtering>
</resource>
</resources>
报错问题解决!!!!!!