spring-boot集成Freemarker开发
1.该demo功能 http://localhost/system/login展示后台发布新闻列表 http://localhost/前端Freemark模板展示 中间用到了Mysql, Mybatis, druid;可以参考spring-boot相关的demo 2.Pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> 3.项目启动 @SpringBootApplication @MapperScan(basePackages="com.lance.freemaker.mapper") public class SimpleApplication { public static void main(String[] args) { SpringApplication.run(SimpleApplication.class, args); } } @Configuration public class WebMvcConfig extends WebMvcConfigurerAdapter{ @Override public void addInterceptors