############# 端口号
server:
port: 311
############# 数据库
spring:
datasource:
url: jdbc:mysql://localhost:3306/dk
username: root
password: 123
driver-class-name: com.mysql.jdbc.Driver
############# 热部署
devtools:
restart:
enabled: true
additional-exclude: src/main/java
############# freemrker
freemarker:
#关闭缓存的
charset: UTF-8
content-type: text/html; charset=utf-8
cache: false
check-template-location: true
template-loader-path: classpath:/templates
suffix: .ftl
############# thymeleaf
thymeleaf:
prefix: classpath:/templates/
suffix: .html
mode: HTML5
encoding: UTF-8
servlet:
content-type: text/html; charset=utf-8
cache: true
############# 静态资源
mvc:
static-path-pattern: /static/**
############# 配置资源文件
messages:
basename: i18n/messages
encoding: UTF-8
redis:
database: 1
host: 192.168.10.105
port: 6379
password:
jedis:
pool:
max-idle: 10
max-wait: -1
max-active: 1000
min-idle: 2
timeout: 200
mybatis:
type-aliases-package: com.example.demo.entity
mapper-locations: classpath:mapper/*.xml
mapper:
mappers:
- com.example.demo.utils.MyMapper
not-empty: false
identity: MYSQL
#分页插件配置
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql