org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
程序员文章站
2022-04-15 17:35:19
...
问题描述:
spring:
profiles:
active: @[email protected]
在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的一下就行了
上一篇: Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
下一篇: Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
推荐阅读
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t
-
解决org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character '%'
-
Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning an alias in ‘reader‘, line 42, column 1
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token found character ‘@‘ t
-
报错Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key