Springboot - java.lang.IllegalStateException: Failed to load property source from location 'classpat

Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning a simple key
in 'reader', line 7, column 3:
name:test
^
could not find expected ':'
in 'reader', line 8, column 3:
url:jdbc:mysql://localhost:3306/ ...
^mysql

*********************************************************************************************************sql

解決方法:app

application.yml文件鍵值之間要用冒號:隔開,並且冒號和值之間有一個空格,不然就報上面的錯誤!url

錯誤寫法:io

enableWebDubug:truetest

 

正確寫法:sed

enableWebDubug: truejdbc

相關文章
相關標籤/搜索