spring boot返回静态页面的方式非常方便,首先需要移除maven的thymeleaf依赖。
要看到返回静态页面,只需要将之前的index.html移到static文件夹下,删除application.properties中视图页面配置即可。直接在浏览器中输入:http://localhost:8080/index.html。
参考页面
https://www.cnblogs.com/csguo/p/9596973.html
spring boot返回静态页面的方式非常方便,首先需要移除maven的thymeleaf依赖。
要看到返回静态页面,只需要将之前的index.html移到static文件夹下,删除application.properties中视图页面配置即可。直接在浏览器中输入:http://localhost:8080/index.html。
参考页面
https://www.cnblogs.com/csguo/p/9596973.html