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

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

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

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

原文地址:https://www.cnblogs.com/xuehuashanghe/p/9641981.html