使用“.yml”文件缩进需要注意的问题


使用 springcloud 整合微服务的时候,使用了 .yml 文件,结果一直报

 

org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentation)
  in 'reader', line 9, column 1:
            name : serveice-member
      ^

这种奇怪的错误,其实,原因是在yml文件中,不可以使用“tab”键来缩进!缩进要使用空格来缩进,这样就正常了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM