Startup report exception: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping

Table of contents

exception information

Abnormal

solve the result


exception information

17:20:38.414 [main] ERROR o.s.b.SpringApplication - [reportFailure,870] - Application run failed
org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
 in 'reader', line 4, column 3:
      name: RuoYi
      ^
expected <block end>, but found '<block mapping start>'
 in 'reader', line 13, column 4:
       profile: /home/yinyuhua/template/
       ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:617)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:165)
    at org.yaml.snakeyaml.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:59)
    at org.yaml.snakeyaml.comments.CommentEventsCollector$1.peek(CommentEventsCollector.java:45)

Abnormal

Reason: The format of the yml file is wrong, and the format of this file is strictly required. If the nodes are not aligned

solve the result

Just align it.

Guess you like

Origin blog.csdn.net/YuDBL/article/details/128459027