spring boot 整合freemaker
前端最好使用vue.js 这里是freemaker 整合spring boot 1.编写pom文件: <dependencies> <dependency> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-starter-freemarker </artifactId> </dependency> <dependency> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-starter-web </artifactId> </dependency> <dependency> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-starter-test </artifactId> <scope> test </scope> </dependency> </dependencies> 2.编写cotroller: @RequestMapping ( "/b" ) public String b ( Map < String , Object > map ) { Student s1 = new Student (