有时候 html界面404 但是引入的jar包 放入的位置 全是正常
就是不知道原因
看到 boot项目 没有引入thymeleaf包时候 boot自动读取static下的html文件配置
引入则是templates下
如果没有找到 则需要在application.yml下配置 resources即可
resources: static-locations: classpath:/resources/, classpath:/static/ ,classpath:/templates/
如果要看springboot整合thymeleaf模板 详情 请转 springboot整合thymeleaf模板 比较详细! 谢谢!