adjust yml

pull/2633/head
windwheel 2 years ago
parent f8398b40c1
commit 17e1ce225f

@ -1,37 +0,0 @@
server.port=18081
spring.application.name=business-service
spring.cloud.nacos.discovery.server-addr=localhost:8848
# The following configuration can be omitted.
spring.datasource.name="businessDataSource"
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://xxx:3306/seata?useSSL=false&serverTimezone=UTC
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.datasource.druid.max-active=20
spring.datasource.druid.min-idle=2
spring.datasource.druid.initial-size=2
#feign.hystrix.enabled=true
#feign.sentinel.enabled=true
feign.client.config.default.connectTimeout=10000
feign.client.config.default.readTimeout=10000
logging.level.io.seata=debug
seata.enabled=true
spring.cloud.alibaba.seata.tx-service-group=business-service
seata.service.vgroup-mapping.business-service=default
seata.service.grouplist.default=127.0.0.1:8091
seata.service.disable-global-transaction=false
spring.cloud.loadbalancer.ribbon.enabled=true
## if use registry center
#seata.registry.type=nacos
#seata.registry.nacos.cluster=default
#seata.registry.nacos.server-addr=localhost
#
## if use config center
#seata.config.type=apollo
#seata.config.apollo.apollo-meta=http://192.168.1.204:8801
#seata.config.apollo.app-id=seata-server

@ -8,9 +8,23 @@ spring:
server-addr: 127.0.0.1:8848
loadbalancer:
ribbon:
enabled:true
enabled: true
seata:
tx-service-group: business-service
application:
name: business-service
datasource:
name: "businessDataSource"
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://xxx:3306/seata?useSSL=false&serverTimezone=UTC
username: xxx
password: xxx
druid:
- max-active:20
- min-idle:2
- initial-size:2
seata:
enabled: true
@ -32,7 +46,18 @@ seata:
username: "nacos"
password: "nacos"
service:
vgroup-mapping:
business-service: default
grouplist:
default: 127.0.0.1:8091
disable-global-transaction: false
feign:
hystrix:
enabled: true
sentinel:
enabled: true
client:
config:
default:

Loading…
Cancel
Save