Springboot访问html页面步骤解析
springboot中如果想访问html页面,不每访问一个页面就写一个Controller,可以统一写一个公共的controller方法代码:如页面路径在demo下,配置文件中servlet.context-path: /test则lhttp://localhost:8081/test/view/demo/...../XXX.html
springboot中如果想访问html页面,不每访问一个页面就写一个Controller,可以统一写一个公共的controller方法代码:如页面路径在demo下,配置文件中servlet.context-path: /test则lhttp://localhost:8081/test/view/demo/...../XXX.html