解决方案是在appliation.properties下添加spring.resources.static-locations=classpath:/templates/
表明静态资源的位置,即可直接访问
springboot项目中无法直接访问templates下的html文件的解决方法
猜你喜欢
转载自www.cnblogs.com/zmwy/p/11635635.html
今日推荐
周排行