区分正式与测试配置修改
This commit is contained in:
@ -13,23 +13,9 @@ spring:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
datasource:
|
||||
# tdengine-server:
|
||||
# #jdbc-url: jdbc:TAOS://192.168.1.198:6030/test_td_db?user=root&password=taosdata&charset=UTF-8&locale=zh_CN.UTF-8&timezone=UTC-8
|
||||
# jdbc-url: jdbc:TAOS-RS://123.60.64.124:6041/test_td_db?user=root&password=taosdata&charset=UTF-8&locale=zh_CN.UTF-8&timezone=UTC-8
|
||||
# username: root
|
||||
# password: taosdata
|
||||
# type: com.zaxxer.hikari.HikariDataSource # Hikari连接池的设置
|
||||
# minimum-idle: 5 #最小连接
|
||||
# maximum-pool-size: 15 #最大连接
|
||||
# auto-commit: true #自动提交
|
||||
# idle-timeout: 30000 #最大空闲时常
|
||||
# pool-name: TDengineDruidCP #连接池名
|
||||
# max-lifetime: 1800000 #最大生命周期
|
||||
# connection-timeout: 30000 #连接超时时间
|
||||
# connection-test-query: show tables
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://1.95.153.121:6041/test_td_db?user=root&password=taosdata&charset=UTF-8&locale=zh_CN.UTF-8&timezone=UTC-8
|
||||
url: jdbc:TAOS-RS://1.95.170.86:6041/test_td_db?user=root&password=taosdata&charset=UTF-8&locale=zh_CN.UTF-8&timezone=UTC-8
|
||||
username: root
|
||||
password: taosdata
|
||||
druid:
|
||||
@ -39,19 +25,12 @@ spring:
|
||||
max-wait: 10000
|
||||
time-between-eviction-runs-millis: 60000
|
||||
validation-query: SELECT 1 as nums
|
||||
# test-while-idle: true
|
||||
# test-on-borrow: false
|
||||
# test-on-return: false
|
||||
# pool-prepared-statements: true
|
||||
# max-pool-prepared-statement-per-connection-size: 20
|
||||
# connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||
# filters: stat # 拦截sql的开
|
||||
#Redis
|
||||
redis:
|
||||
port: 6379 #端口
|
||||
timeout: 3000ms #连接超时
|
||||
host: 1.95.153.121 #单机
|
||||
password: zzkj@688737
|
||||
host: 1.95.170.86 #单机
|
||||
password: 123456
|
||||
database: 0
|
||||
|
||||
boot:
|
||||
|
||||
39
td-service/src/main/resources/application-prod.yml
Normal file
39
td-service/src/main/resources/application-prod.yml
Normal file
@ -0,0 +1,39 @@
|
||||
server:
|
||||
port: 8013
|
||||
servlet:
|
||||
context-path: /td
|
||||
|
||||
spring:
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
application:
|
||||
name: td-service
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 127.0.0.1:8848
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
||||
url: jdbc:TAOS-RS://1.95.153.121:6041/test_td_db?user=root&password=taosdata&charset=UTF-8&locale=zh_CN.UTF-8&timezone=UTC-8
|
||||
username: root
|
||||
password: taosdata
|
||||
druid:
|
||||
initial-size: 6
|
||||
min-idle: 6
|
||||
max-active: 12
|
||||
max-wait: 10000
|
||||
time-between-eviction-runs-millis: 60000
|
||||
validation-query: SELECT 1 as nums
|
||||
#Redis
|
||||
redis:
|
||||
port: 6379 #端口
|
||||
timeout: 3000ms #连接超时
|
||||
host: 1.95.153.121 #单机
|
||||
password: zzkj@688737
|
||||
database: 0
|
||||
|
||||
boot:
|
||||
admin:
|
||||
client:
|
||||
url: http://localhost:8019/boot
|
||||
Reference in New Issue
Block a user