Commit 21d5d17b3b267a228c17c2aa902412aea4a176fe

Authored by 多国蒙
2 parents 2af2b27b 8df2e9c1
account-service.yml 0 → 100644
  1 +server:
  2 + port: 17100
  3 +
  4 +spring:
  5 + profiles: development
  6 + cloud:
  7 + config:
  8 + discovery:
  9 + enabled: true
  10 + aop:
  11 + proxy-target-class: true
  12 +
  13 +
  14 +
  15 + coreDatasource:
  16 + write:
  17 + name: huikeyun
  18 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  19 + username: test
  20 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  21 + driver-class-name: com.mysql.jdbc.Driver
  22 + max-idle: 10
  23 + max-active: 30
  24 + max-wait: 60000
  25 + min-idle: 10
  26 + initial-size: 10
  27 + validation-query: SELECT 1
  28 + test-on-borrow: true
  29 + test-while-idle: true
  30 + read1:
  31 + name: huikeyun
  32 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  33 + username: test
  34 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  35 + driver-class-name: com.mysql.jdbc.Driver
  36 + max-idle: 10
  37 + max-active: 30
  38 + max-wait: 60000
  39 + min-idle: 10
  40 + initial-size: 10
  41 + validation-query: SELECT 1
  42 + test-on-borrow: true
  43 + test-while-idle: true
  44 +
  45 +
  46 + redis:
  47 + database: 0
  48 + host: redis-server
  49 + port: 6379
  50 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  51 + pool:
  52 + max-idle: 100
  53 + min-idle: 10
  54 + max-active: 1000
  55 + max-wait: 100000
  56 + #sentinel:
  57 + #master: mymaster1
  58 + #nodes: redis-server:16379,redis-server:16379
  59 +
  60 +mybatis:
  61 + mapperLocations: classpath:/mybatis/*.xml
  62 + typeAliasesPackage: com.huike.cloud.account
  63 + config: classpath:mybatis-config.xml
  64 +
  65 +sharding.jdbc:
  66 + dataSources:
  67 + ds_master:
  68 + driverClassName: com.mysql.jdbc.Driver
  69 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  70 + username: test
  71 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  72 + ds_slave0:
  73 + driverClassName: com.mysql.jdbc.Driver
  74 + url: jdbc:mysql://testdb-slave1:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  75 + username: test
  76 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  77 + masterSlaveRule:
  78 + name: ds_ms
  79 + masterDataSourceName: ds_master
  80 + slaveDataSourceNames: ds_slave0
  81 + props:
  82 + sql.show: true
  83 +
  84 +#mybatis:
  85 + #configLocation: classpath:mybatis-config.xml
  86 +
  87 +endpoints:
  88 + restart:
  89 + enabled: true
  90 + shutdown:
  91 + enabled: true
  92 + health:
  93 + sensitive: false
  94 +
  95 +eureka:
  96 + instance:
  97 + hostname: account-service
  98 + perferIpAddress: true
  99 + instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  100 + leaseRenewalIntervalInSeconds: 5
  101 + leaseExpirationDurationInSeconds: 15
  102 + client:
  103 + registerWithEureka: true
  104 + fetchRegistry: true
  105 + serviceUrl:
  106 + defaultZone: http://discovery:15200/eureka/
  107 + healthcheck:
  108 + enabled: true
  109 +
  110 +hystrix:
  111 + command:
  112 + default:
  113 + execution:
  114 + timeout:
  115 + enabled: true
  116 + isolation:
  117 + thread:
  118 + timeoutInMilliseconds: 60000
  119 +
  120 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  121 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  122 +ribbon:
  123 + eureka:
  124 + enabled: true
  125 + UseIPAddrForServer: true
  126 + ReadTimeout: 5000
  127 + ConnectTimeout: 10000
  128 +
  129 +
  130 +---
  131 +server:
  132 + port: 17100
  133 +
  134 +spring:
  135 + profiles: test
  136 + cloud:
  137 + config:
  138 + discovery:
  139 + enabled: true
  140 +
  141 + coreDatasource:
  142 + write:
  143 + name: huikeyun
  144 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  145 + username: test
  146 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  147 + driver-class-name: com.mysql.jdbc.Driver
  148 + max-idle: 10
  149 + max-active: 30
  150 + max-wait: 60000
  151 + min-idle: 10
  152 + initial-size: 10
  153 + validation-query: SELECT 1
  154 + test-on-borrow: true
  155 + test-while-idle: true
  156 + read1:
  157 + name: huikeyun
  158 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  159 + username: test
  160 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  161 + driver-class-name: com.mysql.jdbc.Driver
  162 + max-idle: 10
  163 + max-active: 30
  164 + max-wait: 60000
  165 + min-idle: 10
  166 + initial-size: 10
  167 + validation-query: SELECT 1
  168 + test-on-borrow: true
  169 + test-while-idle: true
  170 +
  171 +
  172 + redis:
  173 + database: 0
  174 + host: redis-server
  175 + port: 6379
  176 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  177 + pool:
  178 + max-idle: 100
  179 + min-idle: 10
  180 + max-active: 1000
  181 + max-wait: 100000
  182 + #sentinel:
  183 + #master: mymaster1
  184 + #nodes: redis-server:16379,redis-server:16379
  185 +
  186 +mybatis:
  187 + mapperLocations: classpath:/mybatis/*.xml
  188 + typeAliasesPackage: com.huike.cloud.account
  189 + config: classpath:mybatis-config.xml
  190 +
  191 +
  192 +#mybatis:
  193 + #configLocation: classpath:mybatis-config.xml
  194 +
  195 +endpoints:
  196 + restart:
  197 + enabled: true
  198 + shutdown:
  199 + enabled: true
  200 + health:
  201 + sensitive: false
  202 +
  203 +eureka:
  204 + instance:
  205 + hostname: account-service
  206 + perferIpAddress: true
  207 + client:
  208 + registerWithEureka: true
  209 + fetchRegistry: true
  210 + serviceUrl:
  211 + defaultZone: http://discovery:15200/eureka/
  212 +
  213 +hystrix:
  214 + command:
  215 + default:
  216 + execution:
  217 + timeout:
  218 + enabled: true
  219 + isolation:
  220 + thread:
  221 + timeoutInMilliseconds: 60000
  222 +
  223 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  224 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  225 +ribbon:
  226 + eureka:
  227 + enabled: true
  228 + UseIPAddrForServer: true
  229 + ReadTimeout: 5000
  230 + ConnectTimeout: 10000
  231 +
  232 +
  233 +---
  234 +server:
  235 + port: 17100
  236 +
  237 +spring:
  238 + profiles: production
  239 + cloud:
  240 + config:
  241 + discovery:
  242 + enabled: true
  243 + coreDatasource:
  244 + write:
  245 + name: huikeyun
  246 + url: jdbc:mysql://db-master.gxb-base:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  247 + username: postgres
  248 + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a)
  249 + driver-class-name: com.mysql.jdbc.Driver
  250 + max-idle: 10
  251 + max-active: 30
  252 + max-wait: 60000
  253 + min-idle: 10
  254 + initial-size: 10
  255 + validation-query: SELECT 1
  256 + test-on-borrow: true
  257 + test-while-idle: true
  258 + read1:
  259 + name: huikeyun
  260 + url: jdbc:mysql://db-slave.gxb-base:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  261 + username: postgres
  262 + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a)
  263 + driver-class-name: com.mysql.jdbc.Driver
  264 + max-idle: 10
  265 + max-active: 30
  266 + max-wait: 60000
  267 + min-idle: 10
  268 + initial-size: 10
  269 + validation-query: SELECT 1
  270 + test-on-borrow: true
  271 + test-while-idle: true
  272 +
  273 +
  274 + redis:
  275 + database: 0
  276 + host: gxb-app-20180706.redis.rds.aliyuncs.com
  277 + port: 6379
  278 + password: ENC(263159d39cfeec890c46a4a51f13906ed438bacccea9fce79961c0b0eceac428)
  279 + pool:
  280 + max-idle: 100
  281 + min-idle: 10
  282 + max-active: 1000
  283 + max-wait: 100000
  284 + #sentinel:
  285 + #master: mymaster1
  286 + #nodes: redis1:16379,redis2:16379
  287 +
  288 +mybatis:
  289 + mapperLocations: classpath:/mybatis/*.xml
  290 + typeAliasesPackage: com.huike.cloud.account
  291 + config: classpath:mybatis-config.xml
  292 +
  293 +endpoints:
  294 + restart:
  295 + enabled: true
  296 + shutdown:
  297 + enabled: true
  298 + health:
  299 + sensitive: false
  300 +
  301 +eureka:
  302 + instance:
  303 + perferIpAddress: true
  304 + client:
  305 + registerWithEureka: true
  306 + fetchRegistry: true
  307 + serviceUrl:
  308 + defaultZone: http://discovery:15200/eureka/
  309 +
  310 +hystrix:
  311 + command:
  312 + default:
  313 + execution:
  314 + timeout:
  315 + enabled: true
  316 + isolation:
  317 + thread:
  318 + timeoutInMilliseconds: 60000
  319 +
  320 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  321 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  322 +ribbon:
  323 + eureka:
  324 + enabled: true
  325 + UseIPAddrForServer: true
  326 + ReadTimeout: 5000
  327 + ConnectTimeout: 10000
  328 +
  329 +
  330 +
  331 +
0 \ No newline at end of file 332 \ No newline at end of file
cloud-product-service.yml 0 → 100644
  1 +server:
  2 + port: 17200
  3 +
  4 +spring:
  5 + profiles: development
  6 + cloud:
  7 + config:
  8 + discovery:
  9 + enabled: true
  10 + aop:
  11 + proxy-target-class: true
  12 +
  13 + coreDatasource:
  14 + write:
  15 + name: gxb_core
  16 + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  17 + username: test
  18 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  19 + driver-class-name: com.mysql.jdbc.Driver
  20 + max-idle: 10
  21 + max-active: 30
  22 + max-wait: 60000
  23 + min-idle: 10
  24 + initial-size: 10
  25 + validation-query: SELECT 1
  26 + test-on-borrow: true
  27 + test-while-idle: true
  28 + read1:
  29 + name: gxb_core
  30 + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  31 + username: test
  32 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  33 + driver-class-name: com.mysql.jdbc.Driver
  34 + max-idle: 10
  35 + max-active: 30
  36 + max-wait: 60000
  37 + min-idle: 10
  38 + initial-size: 10
  39 + validation-query: SELECT 1
  40 + test-on-borrow: true
  41 + test-while-idle: true
  42 +
  43 +
  44 + redis:
  45 + database: 0
  46 + host: redis-server
  47 + port: 6379
  48 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  49 + pool:
  50 + max-idle: 100
  51 + min-idle: 10
  52 + max-active: 1000
  53 + max-wait: 100000
  54 + #sentinel:
  55 + #master: mymaster1
  56 + #nodes: redis-server:16379,redis-server:16379
  57 +
  58 +mybatis:
  59 + mapperLocations: classpath:/mybatis/*.xml
  60 + typeAliasesPackage: com.huike.cloud.account
  61 + config: classpath:mybatis-config.xml
  62 +
  63 +
  64 +#mybatis:
  65 + #configLocation: classpath:mybatis-config.xml
  66 +
  67 +endpoints:
  68 + restart:
  69 + enabled: true
  70 + shutdown:
  71 + enabled: true
  72 + health:
  73 + sensitive: false
  74 +
  75 +eureka:
  76 + instance:
  77 + hostname: cloud-product-service
  78 + perferIpAddress: true
  79 + instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  80 + leaseRenewalIntervalInSeconds: 5
  81 + leaseExpirationDurationInSeconds: 15
  82 + client:
  83 + registerWithEureka: true
  84 + fetchRegistry: true
  85 + serviceUrl:
  86 + defaultZone: http://discovery:15200/eureka/
  87 + healthcheck:
  88 + enabled: true
  89 +
  90 +hystrix:
  91 + command:
  92 + default:
  93 + execution:
  94 + timeout:
  95 + enabled: true
  96 + isolation:
  97 + thread:
  98 + timeoutInMilliseconds: 60000
  99 +
  100 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  101 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  102 +ribbon:
  103 + eureka:
  104 + enabled: true
  105 + UseIPAddrForServer: true
  106 + ReadTimeout: 5000
  107 + ConnectTimeout: 10000
  108 +
  109 +
  110 +---
  111 +server:
  112 + port: 17100
  113 +
  114 +spring:
  115 + profiles: test
  116 + cloud:
  117 + config:
  118 + discovery:
  119 + enabled: true
  120 +
  121 + coreDatasource:
  122 + write:
  123 + name: huikeyun
  124 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  125 + username: test
  126 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  127 + driver-class-name: com.mysql.jdbc.Driver
  128 + max-idle: 10
  129 + max-active: 30
  130 + max-wait: 60000
  131 + min-idle: 10
  132 + initial-size: 10
  133 + validation-query: SELECT 1
  134 + test-on-borrow: true
  135 + test-while-idle: true
  136 + read1:
  137 + name: huikeyun
  138 + url: jdbc:mysql://testdb-master:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  139 + username: test
  140 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  141 + driver-class-name: com.mysql.jdbc.Driver
  142 + max-idle: 10
  143 + max-active: 30
  144 + max-wait: 60000
  145 + min-idle: 10
  146 + initial-size: 10
  147 + validation-query: SELECT 1
  148 + test-on-borrow: true
  149 + test-while-idle: true
  150 +
  151 +
  152 + redis:
  153 + database: 0
  154 + host: redis-server
  155 + port: 6379
  156 + password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
  157 + pool:
  158 + max-idle: 100
  159 + min-idle: 10
  160 + max-active: 1000
  161 + max-wait: 100000
  162 + #sentinel:
  163 + #master: mymaster1
  164 + #nodes: redis-server:16379,redis-server:16379
  165 +
  166 +mybatis:
  167 + mapperLocations: classpath:/mybatis/*.xml
  168 + typeAliasesPackage: com.huike.cloud.account
  169 + config: classpath:mybatis-config.xml
  170 +
  171 +
  172 +#mybatis:
  173 + #configLocation: classpath:mybatis-config.xml
  174 +
  175 +endpoints:
  176 + restart:
  177 + enabled: true
  178 + shutdown:
  179 + enabled: true
  180 + health:
  181 + sensitive: false
  182 +
  183 +eureka:
  184 + instance:
  185 + hostname: account-service
  186 + perferIpAddress: true
  187 + client:
  188 + registerWithEureka: true
  189 + fetchRegistry: true
  190 + serviceUrl:
  191 + defaultZone: http://discovery:15200/eureka/
  192 +
  193 +hystrix:
  194 + command:
  195 + default:
  196 + execution:
  197 + timeout:
  198 + enabled: true
  199 + isolation:
  200 + thread:
  201 + timeoutInMilliseconds: 60000
  202 +
  203 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  204 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  205 +ribbon:
  206 + eureka:
  207 + enabled: true
  208 + UseIPAddrForServer: true
  209 + ReadTimeout: 5000
  210 + ConnectTimeout: 10000
  211 +
  212 +
  213 +---
  214 +server:
  215 + port: 17100
  216 +
  217 +spring:
  218 + profiles: production
  219 + cloud:
  220 + config:
  221 + discovery:
  222 + enabled: true
  223 + coreDatasource:
  224 + write:
  225 + name: huikeyun
  226 + url: jdbc:mysql://db-master.gxb-base:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  227 + username: postgres
  228 + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a)
  229 + driver-class-name: com.mysql.jdbc.Driver
  230 + max-idle: 10
  231 + max-active: 30
  232 + max-wait: 60000
  233 + min-idle: 10
  234 + initial-size: 10
  235 + validation-query: SELECT 1
  236 + test-on-borrow: true
  237 + test-while-idle: true
  238 + read1:
  239 + name: huikeyun
  240 + url: jdbc:mysql://db-slave.gxb-base:3306/huikeyun?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  241 + username: postgres
  242 + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a)
  243 + driver-class-name: com.mysql.jdbc.Driver
  244 + max-idle: 10
  245 + max-active: 30
  246 + max-wait: 60000
  247 + min-idle: 10
  248 + initial-size: 10
  249 + validation-query: SELECT 1
  250 + test-on-borrow: true
  251 + test-while-idle: true
  252 +
  253 +
  254 + redis:
  255 + database: 0
  256 + host: gxb-app-20180706.redis.rds.aliyuncs.com
  257 + port: 6379
  258 + password: ENC(263159d39cfeec890c46a4a51f13906ed438bacccea9fce79961c0b0eceac428)
  259 + pool:
  260 + max-idle: 100
  261 + min-idle: 10
  262 + max-active: 1000
  263 + max-wait: 100000
  264 + #sentinel:
  265 + #master: mymaster1
  266 + #nodes: redis1:16379,redis2:16379
  267 +
  268 +mybatis:
  269 + mapperLocations: classpath:/mybatis/*.xml
  270 + typeAliasesPackage: com.huike.cloud.account
  271 + config: classpath:mybatis-config.xml
  272 +
  273 +endpoints:
  274 + restart:
  275 + enabled: true
  276 + shutdown:
  277 + enabled: true
  278 + health:
  279 + sensitive: false
  280 +
  281 +eureka:
  282 + instance:
  283 + perferIpAddress: true
  284 + client:
  285 + registerWithEureka: true
  286 + fetchRegistry: true
  287 + serviceUrl:
  288 + defaultZone: http://discovery:15200/eureka/
  289 +
  290 +hystrix:
  291 + command:
  292 + default:
  293 + execution:
  294 + timeout:
  295 + enabled: true
  296 + isolation:
  297 + thread:
  298 + timeoutInMilliseconds: 60000
  299 +
  300 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  301 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
  302 +ribbon:
  303 + eureka:
  304 + enabled: true
  305 + UseIPAddrForServer: true
  306 + ReadTimeout: 5000
  307 + ConnectTimeout: 10000
  308 +
  309 +
  310 +
  311 +
0 \ No newline at end of file 312 \ No newline at end of file