You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
3 years ago
|
server:
|
||
|
port: 9902
|
||
|
servlet:
|
||
|
context-path: /v1
|
||
|
|
||
|
#配置是否为debug模式,debug模式下,不开启权限校验
|
||
|
debug: false
|
||
|
|
||
|
#datasource数据源设置
|
||
|
spring:
|
||
|
datasource:
|
||
3 years ago
|
url: jdbc:mysql://122.9.135.148:3306/hsg?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
|
||
3 years ago
|
username: root
|
||
|
password: HF123456.
|
||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||
|
driver-class-name: com.mysql.jdbc.Driver
|
||
|
filters: stat
|
||
|
maxActive: 10
|
||
|
initialSize: 5
|
||
|
maxWait: 60000
|
||
|
minIdle: 5
|
||
|
timeBetweenEvictionRunsMillis: 60000
|
||
|
minEvictableIdleTimeMillis: 300000
|
||
|
validationQuery: select 'x'
|
||
|
testWhileIdle: true
|
||
|
testOnBorrow: false
|
||
|
testOnReturn: false
|
||
|
poolPreparedStatements: true
|
||
|
maxOpenPreparedStatements: 20
|
||
|
redis:
|
||
3 years ago
|
database: 1
|
||
3 years ago
|
host: 139.159.177.244
|
||
|
port: 36379
|
||
|
password: HF123456.Redis
|
||
3 years ago
|
timeout: 1000
|
||
3 years ago
|
jedis:
|
||
|
pool:
|
||
|
max-active: 20
|
||
|
max-wait: -1
|
||
|
max-idle: 10
|
||
|
min-idle: 0
|
||
|
#配置日期返回至前台为时间戳
|
||
|
jackson:
|
||
|
serialization:
|
||
|
write-dates-as-timestamps: true
|
||
|
mybatis:
|
||
|
mapperLocations:
|
||
|
- classpath*:sqlmap*/*.xml
|
||
|
type-aliases-package:
|
||
|
org.springboot.sample.entity
|
||
|
|
||
|
pagehelper:
|
||
|
helperDialect: mysql
|
||
|
reasonable: true
|
||
|
supportMethodsArguments: true
|
||
|
params: count=countSql
|