36 lines
885 B
YAML
36 lines
885 B
YAML
spring:
|
|
|
|
datasource:
|
|
url: jdbc:mysql://localhost:3306/hospital?serverTimezone=GMT%2B8&characterEncoding=UTF-8
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
username: root
|
|
password: 123456
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
initialSize: 5
|
|
minIdle: 5
|
|
maxActive: 20
|
|
maxWait: 60000
|
|
time-between-eviction-runs-millis: 60000
|
|
min-evictable-idle-time-millis: 300000
|
|
validation-query: SELECT 1 FROM DUAL
|
|
test-on-borrow: false
|
|
test-while-idle: true
|
|
test-on-return: false
|
|
pool-prepared-statements: true
|
|
filters: stat,wall,log4j
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
use-global-data-source-stat: true
|
|
devtools:
|
|
restart:
|
|
additional-paths:
|
|
- src/main/resources
|
|
|
|
mybatis:
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
server:
|
|
max-http-header-size: 102400
|
|
port: 8080
|
|
|
|
|