Spring Boot
文章平均质量分 79
我们都要金坷垃
这个作者很懒,什么都没留下…
展开
-
Thymeleaf Or Freemarker 与Spring boot 集成
整体步骤:(1)            在pom转载 2018-11-14 16:18:38 · 164 阅读 · 0 评论 -
SpringBoot发现静态文件加载失败的问题
freemarker或者thymeleaf记载js、css等静态文件失败:一般来说Spring Boot会自动配置classpath:/static/ 下面的资源为静态资源,但是据我所知,如果你的项目里面有以下两种情况就会使Spring Boot 的自动配置失效:1、使用了@EnableWebMvc2、配置类继承了WebMvcConfigurationSupport 参考:https://b...原创 2019-02-27 16:12:05 · 1285 阅读 · 0 评论 -
Freemarker和Thymeleaf混用,springboot只装配了其中一个bean问题的解决
application.properties中,我只对 thymeleaf进行了配置 因为我发现freemarker的配置并没有被获取到。spring.thymeleaf.encoding=UTF-8spring.thymeleaf.cache=falsespring.thymeleaf.mode=HTML5spring.thymeleaf.prefix=classpath:/te...原创 2019-02-27 16:13:40 · 1725 阅读 · 0 评论