yml文件数组编写形式及遇到的错误

spring:
  application:
    name: XXX
  thymeleaf:
      cache: false
      prefix: classpath:/templates/
      mode: HTML5    
  resources:
    static-locations:
    - file:E:\abm
    - file:E:\ldh

 

错误  ound character '\t(TAB)' that cannot start any token. (Do not use \t(TAB) for indentatio

是因为不支持TAB的,一定要在上一行按回车健,或者是用空格。

你可能感兴趣的:(java)