You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#1.项目启动的端口
|
|
|
|
|
|
server:
|
|
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
|
#driverClassName: com.mysql.jdbc.Driver #com.mysql.cj.jdbc.Driver com.mysql.jdbc.Driver
|
|
|
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver #com.mysql.cj.jdbc.Driver com.mysql.jdbc.Driver
|
|
|
|
|
|
# url: jdbc:mysql://localhost:3306/head_office_data_center?characterEncoding=utf-8&serverTimezone=UTC&autoReconnect=true
|
|
|
|
|
|
# url: jdbc:mysql://127.0.0.1:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true&allowMultiQueries=true
|
|
|
|
|
|
# url: jdbc:mysql://localhost:3306/head_office_data_center?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=UTC
|
|
|
|
|
|
url: jdbc:mysql://192.168.2.18:3306/disruptor_nmc?useUnicode=true&characterEncoding=utf-8&useSSL=false
|
|
|
|
|
|
username: root
|
|
|
|
|
|
password: Skyinno251,
|
|
|
|
|
|
# driverClassName: oracle.jdbc.driver.OracleDriver
|
|
|
|
|
|
# url: jdbc:oracle:thin:@192.168.1.38:1521/orcl
|
|
|
|
|
|
# username: huangwenfei
|
|
|
|
|
|
# password: huangwenfei
|
|
|
|
|
|
hikari:
|
|
|
|
|
|
#最小空闲连接,默认值10,小于0或大于maximum-pool-size,都会重置为maximum-pool-size
|
|
|
|
|
|
minimum-idle: 10
|
|
|
|
|
|
#最大连接数,小于等于0会被重置为默认值10;大于零小于1会被重置为minimum-idle的值
|
|
|
|
|
|
maximum-pool-size: 20
|
|
|
|
|
|
#空闲连接超时时间,默认值600000(10分钟),大于等于max-lifetime且max-lifetime>0,会被重置为0;不等于0且小于10秒,会被重置为10秒
|
|
|
|
|
|
idle-timeout: 600000
|
|
|
|
|
|
#连接最大存活时间,不等于0且小于30秒,会被重置为默认值30分钟.设置应该比mysql设置的超时时间短
|
|
|
|
|
|
max-lifetime: 1800000
|
|
|
|
|
|
#连接超时时间:毫秒,小于250毫秒,否则被重置为默认值30秒
|
|
|
|
|
|
connection-timeout: 60000
|
|
|
|
|
|
jpa:
|
|
|
|
|
|
# 配置 DBMS 类型
|
|
|
|
|
|
database: mysql
|
|
|
|
|
|
# 配置是否将执行的 SQL 输出到日志
|
|
|
|
|
|
show-sql: false
|
|
|
|
|
|
open-in-view: true
|
|
|
|
|
|
hibernate:
|
|
|
|
|
|
ddl-auto: update # 第一次建表create 后面用update,要不然每次重启都会新建表
|
|
|
|
|
|
thymeleaf:
|
|
|
|
|
|
enabled: true #开启thymeleaf视图解析
|
|
|
|
|
|
encoding: utf-8 #编码
|
|
|
|
|
|
prefix: classpath:/templates/ #前缀
|
|
|
|
|
|
cache: false #是否使用缓存
|
|
|
|
|
|
mode: HTML #严格的HTML语法模式
|
|
|
|
|
|
suffix: .html #后缀名
|
|
|
|
|
|
|
|
|
|
|
|
rehome:
|
|
|
|
|
|
resources-path: /home/admin/storage # 外部资源文件存储路径
|