使用 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”键来缩进!缩进要使用空格来缩进,这样就正常了。