zoukankan      html  css  js  c++  java
  • SpringBoot的yml文件报org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in 'reader', line 11, column 16:

    报错内容如下:

    报错代码如下:

     1 spring:
     2   cloud:
     3     gateway:
     4       routes:
     5         - id: query_route
     6           uri: https://baidu.org
     7           predicates:
     8             - Query=url, baidu
     9 
    10         - id: qq_route
    11             uri: https://www.qq.com
    12             predicates:
    13               - Query=url, qq

    解决:(yml文件的格式要正确,每个冒号的后面要紧跟空格)

     基本上可以定位在11行,冒号后面也都有空格,然后发现在uri的前面多了一个空格,没有对其,所以在粘贴的时候多注意一下位置是否正确!

  • 相关阅读:
    alpha冲刺9
    alpha冲刺8
    alpha冲刺7
    alpha冲6
    随堂小测-同学录
    alpha冲刺5
    任务3
    任务2
    任务1
    网站用户行为分析
  • 原文地址:https://www.cnblogs.com/wanglli/p/13128129.html
Copyright © 2011-2022 走看看