spring-boot集成Freemarker配置文件
application.yml
配置文件
#### 整合freemarker
spring:
freemarker:
cache: false
charset: UTF-8
check-template-location: true
content-type: text/html
expose-request-attributes: true
expose-session-attributes: true
request-context-attribute: request
suffix: .ftl
template-loader-path:
- classpath:/templates
application:
name: app-shop-portal-web
###服务注册到eureka地址(spring cloud配置)
eureka:
client:
service-url:
defaultZone: http://192.168.78.130:8080/eureka
maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »