springboot+thymeleaf项目
报错信息:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/admin/charts/barchart", template might not exist or might not be accessible by any of the configured Template Resolvers
目录层级(正常)
最后发现是controller返回页面的时候路径前面多了个 “/“
把“/”删除掉就好了,细节很重要啊!!!