huodongdong 7 years ago
parent
commit
e2f6056837

+ 1 - 0
dev/api-web-dev.properties

@@ -4,3 +4,4 @@ service.product.name=product-service
 
 spring.redis.host=localhost
 spring.redis.port=6379
+current.test.name=dev

+ 8 - 0
prod/api-web-prod.properties

@@ -0,0 +1,8 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+service.product.name=product-service
+
+spring.redis.host=localhost
+spring.redis.port=6379
+
+current.test.name=prod

+ 5 - 0
prod/application.properties

@@ -0,0 +1,5 @@
+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

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

@@ -0,0 +1,22 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+#出现错误时, 直接抛出异常
+spring.mvc.throw-exception-if-no-handler-found=true
+#不要为我们工程中的资源文件建立映射
+spring.resources.add-mappings=false
+
+# http encoding
+spring.http.encoding.charset=UTF-8
+spring.http.encoding.force=true
+spring.http.encoding.enabled=true
+
+# cms 管理端 会话管理 信息
+jwt.header= X-Token
+jwt.cookie= X-Cookie
+jwt.secret= tomas
+jwt.expiration= 3600
+
+# 执行异步任务的 线程池大小
+cms.threadPoolAsyncTaskExecutor.thread.size=16
+
+#logging.level.root=debug

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

@@ -0,0 +1 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/

+ 21 - 0
prod/resource-service-prod.properties

@@ -0,0 +1,21 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+# database config
+spring.datasource.url=jdbc:mysql://localhost:3306/test
+spring.datasource.driverClassName=com.mysql.jdbc.Driver
+spring.datasource.username=rankin
+spring.datasource.password=abc
+
+spring.jpa.properties.hibernate.hbm2ddl.auto=update
+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
+ali.oss.accessKeySecret=YEm1VebbntRIGmV8s8N33LQfOoC2sA
+ali.oss.bucket=efunimgs
+ali.oss.rankin.dir=resources/
+resource.url.domain=http://efunimgs.oss-cn-beijing.aliyuncs.com/resources

+ 11 - 0
prod/trade-service-prod.properties

@@ -0,0 +1,11 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+spring.datasource.url=jdbc:mysql://localhost:3306/test
+spring.datasource.driverClassName=com.mysql.jdbc.Driver
+spring.datasource.username=rankin
+spring.datasource.password=abc
+
+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

+ 12 - 0
prod/user-service-prod.properties

@@ -0,0 +1,12 @@
+eureka.client.service-url.defaultZone=http://discovery.rankin.com:8821/eureka/
+
+spring.datasource.url=jdbc:mysql://localhost:3306/test
+spring.datasource.driverClassName=com.mysql.jdbc.Driver
+spring.datasource.username=rankin
+spring.datasource.password=abc
+
+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