摘要: SpringBoot中有两种方式可以添加 Servlet、Filter、Listener。 1.代码注册 通过ServletRegistrationBean、 FilterRegistrationBean 和 ServletListenerRegistrationBean 获得控制。 新建WebCo 阅读全文
posted @ 2017-11-01 22:33 小葱拌豆腐~ 阅读(2734) 评论(0) 推荐(0) 编辑
摘要: 1.pom依赖 2.配置application.properties spring.freemarker.allow-request-override=false spring.freemarker.cache=true spring.freemarker.check-template-locati 阅读全文
posted @ 2017-11-01 21:58 小葱拌豆腐~ 阅读(15750) 评论(3) 推荐(2) 编辑
摘要: 原文地址:http://blog.csdn.net/lovesummerforever/article/details/26396465 1.pom依赖 2.代码 3.运行结果(手动格式化了的) 阅读全文
posted @ 2017-11-01 17:55 小葱拌豆腐~ 阅读(5469) 评论(0) 推荐(0) 编辑