mirror of
https://github.com/JeffLi1993/springboot-learning-example.git
synced 2026-03-13 21:43:45 +08:00
21 lines
796 B
Properties
21 lines
796 B
Properties
## 数据源配置
|
|
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 |