在配置数据库配置时,因为的的密码时@开头的所以报了
java.lang.IllegalStateException: Failed to load property source from location ‘classpath:/application-dev.yml’
错误提示是
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)
in ‘reader’, line 8, column 23:
password: @*****
解决办法
yml配置文件,提示不能以 @ 开头。
文件,提示不能以 @ 开头。
解决办法,首尾加上'