34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
application:
|
|
name: jinshan-mybatis-test
|
|
datasource:
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://127.0.0.1:13360/jinshan?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
|
username: jinshan
|
|
password: jinshan@1234A.
|
|
hikari:
|
|
connection-timeout: 30000
|
|
validation-timeout: 5000
|
|
minimum-idle: 10
|
|
maximum-pool-size: 20
|
|
idle-timeout: 600000
|
|
max-lifetime: 900000
|
|
keepaliveTime: 30000
|
|
|
|
# MyBatis-Plus配置
|
|
mybatis-plus:
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
global-config:
|
|
db-config:
|
|
id-type: auto
|
|
table-underline: true
|
|
mapper-locations: classpath*:mapper/**/*.xml
|
|
type-aliases-package: com.jinshan.mybatistest.entity
|
|
|