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.
59 lines
1.7 KiB
59 lines
1.7 KiB
server: |
|
port: 2999 |
|
servlet: |
|
context-path: /HiatmpPro/log |
|
#运行模式 开发环境:dev 测试环境:test 生产环境: production |
|
run-mode: dev |
|
spring: |
|
application: |
|
name: hiatmp-log |
|
cloud: |
|
nacos: |
|
discovery: |
|
server-addr: 10.16.3.178:8848 |
|
#server-addr: localhost:8848 |
|
#6.1管控平台数据库地址、账号、密码,根据项目现场进行修改 |
|
datasource: |
|
primary: |
|
jdbc-url: jdbc:oracle:thin:@10.16.3.179:1521/hiatmpdb |
|
username: hiface |
|
password: hiface |
|
# 下面为数据库连接池相关参数,一般不需修改 |
|
driver-class-name: oracle.jdbc.driver.OracleDriver |
|
type: com.alibaba.druid.pool.DruidDataSource |
|
# 配置获取连接等待超时的时间,单位毫秒 |
|
maxWait: 60000 |
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 |
|
time-between-eviction-runs-millis: 60000 |
|
# 配置一个连接在池中最小生存的时间,单位毫秒 |
|
min-evictable-idle-time-millis: 300000 |
|
validation-query: SELECT 1 FROM DUAL |
|
test-while-idle: true |
|
test-on-borrow: false |
|
test-on-return: false |
|
|
|
schedule: |
|
cron: 0/3 * * * * ? |
|
|
|
# 下面部分为mybatis及log配置,一般不需修改 |
|
mybatis: |
|
mapper-locations: classpath*:sql-mapper/*.xml |
|
mapUnderscoreToCamelCase: true |
|
logging: |
|
config: classpath:log4j2.xml |
|
|
|
swagger: |
|
ui-config: |
|
tags-sorter: method |
|
|
|
jasypt: |
|
encryptor: |
|
password: G0CvDz7oJn6 |
|
encrypted: 0 |
|
keys: |
|
- spring.datasource.primary.password |
|
- spring.datasource.primary.username |
|
- spring.datasource2.password |
|
- spring.datasource2.username |
|
- spring.datasource3.password |
|
- spring.datasource3.username |