Commit 03f7dac737704945a82454e51bce317164dd5fb5
1 parent
e49f6afe
订单服务 配置文件
Showing
1 changed file
with
351 additions
and
0 deletions
order-service.yml
0 → 100644
| 1 | +server: | ||
| 2 | + port: 16400 | ||
| 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 | + secondDatasource: | ||
| 44 | + name: gxb_core | ||
| 45 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | ||
| 46 | + username: test | ||
| 47 | + password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 48 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 49 | + max-idle: 10 | ||
| 50 | + max-active: 30 | ||
| 51 | + max-wait: 60000 | ||
| 52 | + min-idle: 10 | ||
| 53 | + initial-size: 10 | ||
| 54 | + validation-query: SELECT 1 | ||
| 55 | + test-on-borrow: true | ||
| 56 | + test-while-idle: true | ||
| 57 | + redis: | ||
| 58 | + database: 0 | ||
| 59 | + host: redis-server | ||
| 60 | + port: 6379 | ||
| 61 | + password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 62 | + pool: | ||
| 63 | + max-idle: 100 | ||
| 64 | + min-idle: 10 | ||
| 65 | + max-active: 1000 | ||
| 66 | + max-wait: 100000 | ||
| 67 | + sentinel: | ||
| 68 | + master: mymaster1 | ||
| 69 | + nodes: redis-server:16379,redis-server:16379 | ||
| 70 | + | ||
| 71 | +mybatis: | ||
| 72 | + mapperLocations: classpath:/mybatis/*.xml | ||
| 73 | + typeAliasesPackage: com.huike.eaas.microservice.order.domains | ||
| 74 | + config: classpath:mybatis-config.xml | ||
| 75 | + | ||
| 76 | + | ||
| 77 | +#mybatis: | ||
| 78 | + #configLocation: classpath:mybatis-config.xml | ||
| 79 | + | ||
| 80 | +endpoints: | ||
| 81 | + restart: | ||
| 82 | + enabled: true | ||
| 83 | + shutdown: | ||
| 84 | + enabled: true | ||
| 85 | + health: | ||
| 86 | + sensitive: false | ||
| 87 | + | ||
| 88 | +eureka: | ||
| 89 | + instance: | ||
| 90 | + hostname: order-service | ||
| 91 | + perferIpAddress: true | ||
| 92 | + instance-id: ${spring.cloud.client.ipAddress}:${server.port} | ||
| 93 | + leaseRenewalIntervalInSeconds: 5 | ||
| 94 | + leaseExpirationDurationInSeconds: 15 | ||
| 95 | + client: | ||
| 96 | + registerWithEureka: true | ||
| 97 | + fetchRegistry: true | ||
| 98 | + serviceUrl: | ||
| 99 | + defaultZone: http://discovery:15200/eureka/ | ||
| 100 | + healthcheck: | ||
| 101 | + enabled: true | ||
| 102 | + | ||
| 103 | +hystrix: | ||
| 104 | + command: | ||
| 105 | + default: | ||
| 106 | + execution: | ||
| 107 | + timeout: | ||
| 108 | + enabled: true | ||
| 109 | + isolation: | ||
| 110 | + thread: | ||
| 111 | + timeoutInMilliseconds: 60000 | ||
| 112 | + | ||
| 113 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | ||
| 114 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | ||
| 115 | +ribbon: | ||
| 116 | + eureka: | ||
| 117 | + enabled: true | ||
| 118 | + UseIPAddrForServer: true | ||
| 119 | + ReadTimeout: 5000 | ||
| 120 | + ConnectTimeout: 10000 | ||
| 121 | + | ||
| 122 | + | ||
| 123 | +--- | ||
| 124 | +server: | ||
| 125 | + port: 16300 | ||
| 126 | + | ||
| 127 | +spring: | ||
| 128 | + profiles: test | ||
| 129 | + cloud: | ||
| 130 | + config: | ||
| 131 | + discovery: | ||
| 132 | + enabled: true | ||
| 133 | + | ||
| 134 | + coreDatasource: | ||
| 135 | + write: | ||
| 136 | + name: gxb_core | ||
| 137 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | ||
| 138 | + username: test | ||
| 139 | + password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 140 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 141 | + max-idle: 10 | ||
| 142 | + max-active: 30 | ||
| 143 | + max-wait: 60000 | ||
| 144 | + min-idle: 10 | ||
| 145 | + initial-size: 10 | ||
| 146 | + validation-query: SELECT 1 | ||
| 147 | + test-on-borrow: true | ||
| 148 | + test-while-idle: true | ||
| 149 | + read1: | ||
| 150 | + name: gxb_core | ||
| 151 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | ||
| 152 | + username: test | ||
| 153 | + password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 154 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 155 | + max-idle: 10 | ||
| 156 | + max-active: 30 | ||
| 157 | + max-wait: 60000 | ||
| 158 | + min-idle: 10 | ||
| 159 | + initial-size: 10 | ||
| 160 | + validation-query: SELECT 1 | ||
| 161 | + test-on-borrow: true | ||
| 162 | + test-while-idle: true | ||
| 163 | + | ||
| 164 | + secondDatasource: | ||
| 165 | + name: gxb_core | ||
| 166 | + url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | ||
| 167 | + username: rd | ||
| 168 | + password: ENC(5860760736a5c5fbbcbeab1cf6c72b38) | ||
| 169 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 170 | + max-idle: 10 | ||
| 171 | + max-active: 30 | ||
| 172 | + max-wait: 60000 | ||
| 173 | + min-idle: 10 | ||
| 174 | + initial-size: 10 | ||
| 175 | + validation-query: SELECT 1 | ||
| 176 | + test-on-borrow: true | ||
| 177 | + test-while-idle: true | ||
| 178 | + redis: | ||
| 179 | + database: 0 | ||
| 180 | + host: redis-server | ||
| 181 | + port: 6379 | ||
| 182 | + password: ENC(8aea42e66b0928c44cd8f861a9d558e6) | ||
| 183 | + pool: | ||
| 184 | + max-idle: 100 | ||
| 185 | + min-idle: 10 | ||
| 186 | + max-active: 1000 | ||
| 187 | + max-wait: 100000 | ||
| 188 | + sentinel: | ||
| 189 | + master: mymaster1 | ||
| 190 | + nodes: redis-server:16379,redis-server:16379 | ||
| 191 | + | ||
| 192 | + | ||
| 193 | + | ||
| 194 | + | ||
| 195 | +#mybatis: | ||
| 196 | + #configLocation: classpath:mybatis-config.xml | ||
| 197 | + | ||
| 198 | +endpoints: | ||
| 199 | + restart: | ||
| 200 | + enabled: true | ||
| 201 | + shutdown: | ||
| 202 | + enabled: true | ||
| 203 | + health: | ||
| 204 | + sensitive: false | ||
| 205 | + | ||
| 206 | +eureka: | ||
| 207 | + instance: | ||
| 208 | + hostname: order-service | ||
| 209 | + perferIpAddress: true | ||
| 210 | + client: | ||
| 211 | + registerWithEureka: true | ||
| 212 | + fetchRegistry: true | ||
| 213 | + serviceUrl: | ||
| 214 | + defaultZone: http://discovery:15200/eureka/ | ||
| 215 | + | ||
| 216 | +hystrix: | ||
| 217 | + command: | ||
| 218 | + default: | ||
| 219 | + execution: | ||
| 220 | + timeout: | ||
| 221 | + enabled: true | ||
| 222 | + isolation: | ||
| 223 | + thread: | ||
| 224 | + timeoutInMilliseconds: 60000 | ||
| 225 | + | ||
| 226 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | ||
| 227 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | ||
| 228 | +ribbon: | ||
| 229 | + eureka: | ||
| 230 | + enabled: true | ||
| 231 | + UseIPAddrForServer: true | ||
| 232 | + ReadTimeout: 5000 | ||
| 233 | + ConnectTimeout: 10000 | ||
| 234 | + | ||
| 235 | +# 一些公共的常量配置 | ||
| 236 | +apiConfig: | ||
| 237 | + resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com | ||
| 238 | + usrLocalTomcatTempLocation: /usr/local/tomcat/temp | ||
| 239 | + gxbApiUrl: http://gxb-api:8080/gxb-api | ||
| 240 | +--- | ||
| 241 | +server: | ||
| 242 | + port: 16300 | ||
| 243 | + | ||
| 244 | +spring: | ||
| 245 | + profiles: production | ||
| 246 | + cloud: | ||
| 247 | + config: | ||
| 248 | + discovery: | ||
| 249 | + enabled: true | ||
| 250 | + coreDatasource: | ||
| 251 | + write: | ||
| 252 | + name: gxb_core | ||
| 253 | + url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | ||
| 254 | + username: postgres | ||
| 255 | + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a) | ||
| 256 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 257 | + max-idle: 10 | ||
| 258 | + max-active: 30 | ||
| 259 | + max-wait: 60000 | ||
| 260 | + min-idle: 10 | ||
| 261 | + initial-size: 10 | ||
| 262 | + validation-query: SELECT 1 | ||
| 263 | + test-on-borrow: true | ||
| 264 | + test-while-idle: true | ||
| 265 | + read1: | ||
| 266 | + name: gxb_core | ||
| 267 | + url: jdbc:mysql://db3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | ||
| 268 | + username: postgres | ||
| 269 | + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a) | ||
| 270 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 271 | + max-idle: 10 | ||
| 272 | + max-active: 30 | ||
| 273 | + max-wait: 60000 | ||
| 274 | + min-idle: 10 | ||
| 275 | + initial-size: 10 | ||
| 276 | + validation-query: SELECT 1 | ||
| 277 | + test-on-borrow: true | ||
| 278 | + test-while-idle: true | ||
| 279 | + | ||
| 280 | + secondDatasource: | ||
| 281 | + name: gxb_core | ||
| 282 | + url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8 | ||
| 283 | + username: postgres | ||
| 284 | + password: ENC(d1b95542f58fbfb0e823af8f3974b1bda84f2dc413e5ec6bc9566bb3aa950a2be59ecaaf2ed5eb3a4b4101fcf299419a) | ||
| 285 | + driver-class-name: com.mysql.jdbc.Driver | ||
| 286 | + max-idle: 10 | ||
| 287 | + max-active: 30 | ||
| 288 | + max-wait: 60000 | ||
| 289 | + min-idle: 10 | ||
| 290 | + initial-size: 10 | ||
| 291 | + validation-query: SELECT 1 | ||
| 292 | + test-on-borrow: true | ||
| 293 | + test-while-idle: true | ||
| 294 | + redis: | ||
| 295 | + database: 0 | ||
| 296 | + host: redis1 | ||
| 297 | + port: 6379 | ||
| 298 | + password: ENC(c2bcc076c4c1dc27436226f3af749fb5b444d4973bb049848ff3c98517dec050) | ||
| 299 | + pool: | ||
| 300 | + max-idle: 100 | ||
| 301 | + min-idle: 10 | ||
| 302 | + max-active: 1000 | ||
| 303 | + max-wait: 100000 | ||
| 304 | + sentinel: | ||
| 305 | + master: mymaster1 | ||
| 306 | + nodes: redis1:16379,redis2:16379 | ||
| 307 | + | ||
| 308 | +mybatis: | ||
| 309 | + mapperLocations: classpath:/mybatis/*.xml | ||
| 310 | + typeAliasesPackage: com.huike.eaas.microservice.order.domains | ||
| 311 | + config: classpath:mybatis-config.xml | ||
| 312 | + | ||
| 313 | +endpoints: | ||
| 314 | + restart: | ||
| 315 | + enabled: true | ||
| 316 | + shutdown: | ||
| 317 | + enabled: true | ||
| 318 | + health: | ||
| 319 | + sensitive: false | ||
| 320 | + | ||
| 321 | +eureka: | ||
| 322 | + instance: | ||
| 323 | + perferIpAddress: true | ||
| 324 | + client: | ||
| 325 | + registerWithEureka: true | ||
| 326 | + fetchRegistry: true | ||
| 327 | + serviceUrl: | ||
| 328 | + defaultZone: http://discovery:15200/eureka/ | ||
| 329 | + | ||
| 330 | +hystrix: | ||
| 331 | + command: | ||
| 332 | + default: | ||
| 333 | + execution: | ||
| 334 | + timeout: | ||
| 335 | + enabled: true | ||
| 336 | + isolation: | ||
| 337 | + thread: | ||
| 338 | + timeoutInMilliseconds: 60000 | ||
| 339 | + | ||
| 340 | +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建) | ||
| 341 | +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建) | ||
| 342 | +ribbon: | ||
| 343 | + eureka: | ||
| 344 | + enabled: true | ||
| 345 | + UseIPAddrForServer: true | ||
| 346 | + ReadTimeout: 5000 | ||
| 347 | + ConnectTimeout: 10000 | ||
| 348 | + | ||
| 349 | + | ||
| 350 | + | ||
| 351 | + | ||
| 0 | \ No newline at end of file | 352 | \ No newline at end of file |