宋子宪博客

Szx

spring-boot集成Freemarker配置文件
application.yml配置文件#### 整合freemarker spring: freemarker...
扫描右侧二维码阅读全文
31
2019/05

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>

Last modification:September 20th, 2019 at 04:04 pm
如果觉得这篇技术文章对您有帮助,可以请博主喝一杯饮料

Leave a Comment