mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-14 06:03:52 +08:00
Spring Boot 集成 FreeMarker
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
## 数据源配置
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/springbootdb?useUnicode=true&characterEncoding=utf8
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=123456
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
|
||||
## Mybatis 配置
|
||||
mybatis.typeAliasesPackage=org.spring.springboot.domain
|
||||
mybatis.mapperLocations=classpath:mapper/*.xml
|
||||
|
||||
## Freemarker 配置
|
||||
## 文件配置路径
|
||||
spring.freemarker.template-loader-path=classpath:/city/
|
||||
spring.freemarker.cache=false
|
||||
spring.freemarker.charset=UTF-8
|
||||
spring.freemarker.check-template-location=true
|
||||
spring.freemarker.content-type=text/html
|
||||
spring.freemarker.expose-request-attributes=true
|
||||
spring.freemarker.expose-session-attributes=true
|
||||
spring.freemarker.request-context-attribute=request
|
||||
spring.freemarker.suffix=.ftl
|
||||
Reference in New Issue
Block a user