springboot默认页面映射路径为 classpath:/templates/*.html
同样静态文件路径为 classpath:/static/
如果使用的模板引擎是HTML,
当controller返回视图时,直接写视图名称可以返回该视图。
springboot默认页面映射路径为 classpath:/templates/*.html
同样静态文件路径为 classpath:/static/
如果使用的模板引擎是HTML,
当controller返回视图时,直接写视图名称可以返回该视图。