huodongdong 7 gadi atpakaļ
vecāks
revīzija
ec78446771

+ 0 - 2
dev/application.properties

@@ -1,5 +1,3 @@
-config.current.name=dev
-
 service.product.name=product-service
 service.resource.name=resource-service
 service.user.name=user-service

+ 10 - 5
prod/api-web-prod.properties

@@ -1,8 +1,13 @@
+# discovery uri
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
 
-service.product.name=product-service
-
-spring.redis.host=localhost
+## redis 配置
+spring.redis.host= r-2ze3b84e6309c7d4.redis.rds.aliyuncs.com
 spring.redis.port=6379
-
-current.test.name=prod
+spring.redis.password=Lingj20170915
+spring.redis.timeout=3000
+spring.redis.pool.max-idle=8
+spring.redis.pool.min-idle=0
+spring.redis.pool.max-active=8
+spring.redis.pool.max-wait=-1
+spring.redis.key.prefix=api/web

+ 9 - 2
prod/application.properties

@@ -1,6 +1,13 @@
-config.current.name=prod
+# service name
 service.product.name=product-service
 service.resource.name=resource-service
 service.user.name=user-service
 service.trade.name=trade-service
-remote.auth.url=http://zuul.efunbox.cn
+
+# discovery center eureka uri
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+# data center setting
+remote.auth.url=http://zuul.ai160.com
+remote.user.url=http://zuul.ai160.com
+remote.resource.url=http://zuul.ai160.com

+ 11 - 0
prod/cms-web-prod.properties

@@ -20,3 +20,14 @@ jwt.expiration= 3600
 cms.threadPoolAsyncTaskExecutor.thread.size=16
 
 #logging.level.root=debug
+
+## redis 配置
+spring.redis.host= r-2ze3b84e6309c7d4.redis.rds.aliyuncs.com
+spring.redis.port=6379
+spring.redis.password=Lingj20170915
+spring.redis.timeout=3000
+spring.redis.pool.max-idle=8
+spring.redis.pool.min-idle=0
+spring.redis.pool.max-active=8
+spring.redis.pool.max-wait=-1
+spring.redis.key.prefix=cms-web

+ 10 - 0
prod/product-service-prod.properties

@@ -1 +1,11 @@
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8820/eureka/
+
+# database setting
+spring.datasource.url=jdbc:mysql://rm-2zeptkzp761f34ch0.mysql.rds.aliyuncs.com:3306/rankin?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
+spring.datasource.driverClassName=com.mysql.jdbc.Driver
+spring.datasource.username=lingjiao
+spring.datasource.password=Lingjiao!@#
+
+spring.jpa.properties.hibernate.hbm2ddl.auto=update
+spring.jpa.properties.hibernate.show_sql=true
+spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect

+ 10 - 0
prod/rankin-task-prod.properties

@@ -1 +1,11 @@
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+# database setting
+spring.datasource.url=jdbc:mysql://rm-2zeptkzp761f34ch0.mysql.rds.aliyuncs.com:3306/rankin?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
+spring.datasource.driverClassName=com.mysql.jdbc.Driver
+spring.datasource.username=lingjiao
+spring.datasource.password=Lingjiao!@#
+
+spring.jpa.properties.hibernate.hbm2ddl.auto=update
+spring.jpa.properties.hibernate.show_sql=true
+spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect

+ 5 - 7
prod/resource-service-prod.properties

@@ -1,17 +1,15 @@
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
 
-# database config
-spring.datasource.url=jdbc:mysql://localhost:3306/test
+# database setting
+spring.datasource.url=jdbc:mysql://rm-2zeptkzp761f34ch0.mysql.rds.aliyuncs.com:3306/rankin?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
 spring.datasource.driverClassName=com.mysql.jdbc.Driver
-spring.datasource.username=rankin
-spring.datasource.password=abc
+spring.datasource.username=lingjiao
+spring.datasource.password=Lingjiao!@#
 
 spring.jpa.properties.hibernate.hbm2ddl.auto=update
+spring.jpa.properties.hibernate.show_sql=true
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
 
-# resource center url
-remote.resource.url=http://zuul.efunbox.cn
-
 # ali oss config
 ali.oss.endpoint=oss-cn-beijing.aliyuncs.com
 ali.oss.accessKeyId=LTAIUFvd17IXLBQ4

+ 4 - 4
prod/trade-service-prod.properties

@@ -1,11 +1,11 @@
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
 
-spring.datasource.url=jdbc:mysql://localhost:3306/test
+# database setting
+spring.datasource.url=jdbc:mysql://rm-2zeptkzp761f34ch0.mysql.rds.aliyuncs.com:3306/rankin?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
 spring.datasource.driverClassName=com.mysql.jdbc.Driver
-spring.datasource.username=rankin
-spring.datasource.password=abc
+spring.datasource.username=lingjiao
+spring.datasource.password=Lingjiao!@#
 
 spring.jpa.properties.hibernate.hbm2ddl.auto=update
 spring.jpa.properties.hibernate.show_sql=true
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
-#spring.jpa.properties.hibernate.max_fetch_depth=1

+ 1 - 2
prod/user-service-prod.properties

@@ -1,5 +1,6 @@
 eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
 
+# database setting
 spring.datasource.url=jdbc:mysql://rm-2zeptkzp761f34ch0.mysql.rds.aliyuncs.com:3306/rankin?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
 spring.datasource.driverClassName=com.mysql.jdbc.Driver
 spring.datasource.username=lingjiao
@@ -8,5 +9,3 @@ spring.datasource.password=Lingjiao!@#
 spring.jpa.properties.hibernate.hbm2ddl.auto=update
 spring.jpa.properties.hibernate.show_sql=true
 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
-#spring.jpa.properties.hibernate.max_fetch_depth=1
-remote.user.url=http://zuul.efunbox.cn