具体报错:
Caused by: 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 2, column 1:
info: welcome to atguigu study
我在学习过程中遇到了黄色字的报错:
当时看到老师没报错我怎么报错了还吓了一跳;
其实仔细看就会发现它已经给我们说出来了,让我们不要用tab
也怪自己粗心大意,在consul上写kv时已经提示不要用tab了。。。。。
所以我们直接改成空格就行了: