2024-08-13 19:29:04 +08:00
|
|
|
server:
|
|
|
|
|
port: 18092
|
|
|
|
|
spring:
|
|
|
|
|
application:
|
|
|
|
|
name: entrance
|
2024-10-30 20:37:42 +08:00
|
|
|
datasource:
|
|
|
|
|
druid:
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-11-15 19:45:50 +08:00
|
|
|
url: jdbc:mysql://127.0.0.1:3306/pqs9100?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
|
2024-10-30 20:37:42 +08:00
|
|
|
username: root
|
2024-11-15 19:45:50 +08:00
|
|
|
password: 123456
|
2024-10-30 20:37:42 +08:00
|
|
|
#初始化建立物理连接的个数、最小、最大连接数
|
|
|
|
|
initial-size: 5
|
|
|
|
|
min-idle: 5
|
|
|
|
|
max-active: 50
|
|
|
|
|
#获取连接最大等待时间,单位毫秒
|
|
|
|
|
max-wait: 60000
|
|
|
|
|
#链接保持空间而不被驱逐的最长时间,单位毫秒
|
|
|
|
|
min-evictable-idle-time-millis: 300000
|
|
|
|
|
validation-query: select 1
|
|
|
|
|
test-while-idle: true
|
|
|
|
|
test-on-borrow: false
|
|
|
|
|
test-on-return: false
|
|
|
|
|
pool-prepared-statements: true
|
|
|
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|
|
|
|
|
|
|
|
|
#mybatis配置信息
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
mapper-locations: classpath*:com/njcn/**/mapping/*.xml
|
|
|
|
|
#别名扫描
|
2024-11-07 19:22:31 +08:00
|
|
|
type-aliases-package: com.njcn.gather.system.dictionary.pojo.po,com.njcn.gather.machine.pojo.po
|
2024-10-30 20:37:42 +08:00
|
|
|
configuration:
|
|
|
|
|
#驼峰命名
|
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
|
#配置sql日志输出
|
|
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
#关闭日志输出
|
|
|
|
|
#log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
|
|
|
|
#指定主键生成策略
|
|
|
|
|
id-type: assign_uuid
|
2024-08-13 19:29:04 +08:00
|
|
|
|
|
|
|
|
log:
|
2024-10-30 09:16:12 +08:00
|
|
|
homeDir: D:\logs
|
|
|
|
|
commonLevel: info
|