springboot启动报错:while parsing a block mapping in ‘reader‘, line 3, column 5:

yml 配置文件读取出错:org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping in ‘reader’

 while parsing a block mapping
 in 'reader', line 3, column 5:
        url: jdbc:mysql://localhost:3306 ... 
        ^
expected <block end>, but found '<block mapping start>'
 in 'reader', line 6, column 6:
         password: ""
         ^

springboot启动报错:while parsing a block mapping in ‘reader‘, line 3, column 5:_第1张图片

可能的原因

  • yml 配置文件出错,yml 对格式要求非常严格
  • 以 key - value 的形式存在
  • key和value 之间必须有空格,

springboot启动报错:while parsing a block mapping in ‘reader‘, line 3, column 5:_第2张图片

你可能感兴趣的:(spring,boot,后端,java)