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.
43 lines
1.4 KiB
43 lines
1.4 KiB
1 year ago
|
spring:
|
||
|
application:
|
||
|
name: game
|
||
|
config:
|
||
|
activate:
|
||
|
on-profile: test
|
||
|
aop:
|
||
|
auto: true
|
||
|
proxy-target-class: true
|
||
|
pid:
|
||
|
file: pid #pid文件名
|
||
|
|
||
|
datasource:
|
||
|
game:
|
||
|
type: com.zaxxer.hikari.HikariDataSource
|
||
|
jdbcUrl: jdbc:mysql://localhost:3306/game?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&connectTimeout=300&socketTimeout=2000&serverTimezone=Hongkong&zeroDateTimeBehavior=convertToNull
|
||
|
username: game
|
||
|
password: Vd12luSjmwAXuwDH
|
||
|
connectionTimeout: 300
|
||
|
maximumPoolSize: 5
|
||
|
minimumIdle: 1
|
||
|
idleTimeout: 600000 #This property controls the maximum amount of time that a connection is allowed to sit idle in the pool
|
||
|
maxLifetime: 3600000 #This property controls the maximum lifetime of a connection in the pool
|
||
|
|
||
|
mybatis-plus:
|
||
|
configuration:
|
||
|
map-underscore-to-camel-case: true #数据库字段下划线映射java对象属性用驼峰命名
|
||
|
|
||
|
server:
|
||
|
port: 8000
|
||
|
tomcat:
|
||
|
connection-timeout: 60000 #Time in milliseconds that connectors will wait for another HTTP request before closing the connection.
|
||
|
accept-count: 100 # Maximum queue length for incoming connection requests when all possible request processing threads are in use.
|
||
|
max-connections: 256 # Maximum number of connections that the server will accept and process at any given time.
|
||
|
threads:
|
||
|
max: 16
|
||
|
min-spare: 4
|
||
|
servlet:
|
||
|
encoding:
|
||
|
enabled: true
|
||
|
charset: utf-8
|
||
|
|