From c35a64e020e887c8bac676710d027043d9294566 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期六, 01 六月 2019 11:50:51 +0800
Subject: [PATCH] 修改费用服务名 端口号
---
FeeService/src/main/resources/application-test.yml | 4 +-
FeeService/src/main/resources/application-prod.yml | 4 +-
FeeService/src/main/resources/application-dev.yml | 4 +-
FeeService/src/main/resources/dataSource.yml | 80 +++++++--------------------------------
4 files changed, 21 insertions(+), 71 deletions(-)
diff --git a/FeeService/src/main/resources/application-dev.yml b/FeeService/src/main/resources/application-dev.yml
index c5df2b5..8a9d441 100644
--- a/FeeService/src/main/resources/application-dev.yml
+++ b/FeeService/src/main/resources/application-dev.yml
@@ -18,7 +18,7 @@
defaultZone: http://dev.java110.com:8761/eureka/
#defaultZone: http://localhost:8761/eureka/
server:
- port: 8009
+ port: 8010
tomcat:
uri-encoding: UTF-8
@@ -31,7 +31,7 @@
enabled: true
force: true
application:
- name: community-service
+ name: fee-service
redis:
database: 0
host: dev.redis.java110.com
diff --git a/FeeService/src/main/resources/application-prod.yml b/FeeService/src/main/resources/application-prod.yml
index e9d1d7e..90344f0 100644
--- a/FeeService/src/main/resources/application-prod.yml
+++ b/FeeService/src/main/resources/application-prod.yml
@@ -18,7 +18,7 @@
defaultZone: http://prod.java110.com:8761/eureka/
#defaultZone: http://localhost:8761/eureka/
server:
- port: 8009
+ port: 8010
tomcat:
uri-encoding: UTF-8
@@ -29,7 +29,7 @@
enabled: true
force: true
application:
- name: community-service
+ name: fee-service
redis:
database: 0
host: prod.redis.java110.com
diff --git a/FeeService/src/main/resources/application-test.yml b/FeeService/src/main/resources/application-test.yml
index 2d8db5a..c5a2b04 100644
--- a/FeeService/src/main/resources/application-test.yml
+++ b/FeeService/src/main/resources/application-test.yml
@@ -18,7 +18,7 @@
defaultZone: http://test.java110.com:8761/eureka/
#defaultZone: http://localhost:8761/eureka/
server:
- port: 8009
+ port: 8010
tomcat:
uri-encoding: UTF-8
@@ -29,7 +29,7 @@
enabled: true
force: true
application:
- name: community-service
+ name: fee-service
redis:
database: 0
host: test.redis.java110.com
diff --git a/FeeService/src/main/resources/dataSource.yml b/FeeService/src/main/resources/dataSource.yml
index a6bb8ec..991da3a 100644
--- a/FeeService/src/main/resources/dataSource.yml
+++ b/FeeService/src/main/resources/dataSource.yml
@@ -10,16 +10,16 @@
maxWait: 60000
filters: stat,wall,log4j
poolPreparedStatements: true
-# ds0_slave0: !!com.alibaba.druid.pool.DruidDataSource
-# driverClassName: com.mysql.jdbc.Driver
-# url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
-# username: TT
-# password: TT@12345678
-# connectionTimeoutMilliseconds: 30000
-# idleTimeoutMilliseconds: 60000
-# maxPoolSize: 50
-# minPoolSize: 1
-# maintenanceIntervalMilliseconds: 30000
+ # ds0_slave0: !!com.alibaba.druid.pool.DruidDataSource
+ # driverClassName: com.mysql.jdbc.Driver
+ # url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
+ # username: TT
+ # password: TT@12345678
+ # connectionTimeoutMilliseconds: 30000
+ # idleTimeoutMilliseconds: 60000
+ # maxPoolSize: 50
+ # minPoolSize: 1
+ # maintenanceIntervalMilliseconds: 30000
ds1: !!com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
@@ -44,69 +44,19 @@
shardingRule:
tables:
- business_community:
+ business_xxx:
actualDataNodes: ds${0..1}.business_community
databaseStrategy:
inline:
shardingColumn: community_id
algorithmExpression: ds${Long.parseLong(community_id) % 2}
- s_community:
- actualDataNodes: ds${0..1}.s_community
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- business_community_attr:
- actualDataNodes: ds${0..1}.business_community_attr
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- s_community_attr:
- actualDataNodes: ds${0..1}.s_community_attr
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- business_community_member:
- actualDataNodes: ds${0..1}.business_community_member
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- business_community_photo:
- actualDataNodes: ds${0..1}.business_community_photo
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- s_community_member:
- actualDataNodes: ds${0..1}.s_community_member
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
- s_community_photo:
- actualDataNodes: ds${0..1}.s_community_photo
- databaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
+
bindingTables:
- - business_community
- - s_community
- - business_community_member
- - business_community_photo
- - s_community_member
- - s_community_photo
- - business_community_attr
- - s_community_attr
+ - business_xxx
defaultDataSourceName: ds1
defaultDatabaseStrategy:
- inline:
- shardingColumn: community_id
- algorithmExpression: ds${Long.parseLong(community_id) % 2}
+ none:
defaultTableStrategy:
none:
@@ -122,4 +72,4 @@
# - ds1_slave0
# loadBalanceAlgorithmType: ROUND_ROBIN
props:
- sql.show: true
+ sql.show: true
\ No newline at end of file
--
Gitblit v1.8.0