springboot+thymeleaf解决静态资源加载不上的问题
整体框架用的是,springboot+mybatis,前端用的是thymeleaf,但是没用它自带的引入标签th,在加载过程中发现一直不能加载本地的静态资源,看了很多经验还是没有解决,后来自己总结加大神帮助解决了。首先,配置pom.xml:二,配置application.properties:spring.resources.static-locations=classpath:/stat...
原创
2019-09-03 10:49:01 ·
7910 阅读 ·
0 评论