server:
port: 84
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
mybatis:
mapper-locations: classpath:mapper/*.xml #配置映射文件
type-aliases-package: UserBean # 所有Entity别名类所在包
config-location: classpath:mybatis/mybatis.cfg.xml # mybatis配置文件所在路径
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver # mysql驱动包
url: jdbc:mysql://127.0.0.1:3306/bysj?useUnicode=yes&characterEncoding=utf8 # 数据库名称
username: root
password: 123456
dbcp2:
min-idle: 5 # 数据库连接池的最小维持连接数
initial-size: 5 # 初始化连接数
max-total: 5 # 最大连接数
max-wait-millis: 200 # 等待连接获取的最大超时时间
messages:
basename: mg/list
thymeleaf:
cache: false
check-template: true
check-template-location: true
enabled: true
encoding: utf-8
mode: HTML
prefix: classpath:/templates/
suffix: .html
mvc:
static-path-pattern: /static/**