springboot不用模板引擎跳转html
springboot不用模板引擎跳转html
applicatio.properties加上:
#谁在前面先调用谁下面的index
spring.web.resources.static-locations=classpath:/public/,classpath:/static/,classpath:/templates/
spring.mvc.view.suffix=.html
return “index”;
直接返回index界面
详细:
https://www.cnblogs.com/guo-xu/
原创
2021-01-29 13:34:26 ·
746 阅读 ·
0 评论