thymeleaf Error resolving template

Error resolving template [/xxxx], template might not exist or might not be accessible by any of the configured Template Resolvers.

23:25:14.773 [http-nio-8888-exec-1] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-8888-exec-1] Exception processing template "/home/index": Error resolving template [/home/index], template might not exist or might not be accessible by any of the configured Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/home/index], template might not exist or might not be accessible by any of the configured Template Resolvers
    at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
    at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
    at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
    at org.thymeleaf.Templ

Linux系统下为相对路径:

正确示例:

 ModelAndView m = new ModelAndView();
  m.setViewName("home/index");
  return m;

错误示例:

 ModelAndView m = new ModelAndView();
  m.setViewName("/home/index");
  return m;