mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
31 lines
1.0 KiB
Properties
31 lines
1.0 KiB
Properties
spring.application.name=account-service
|
|
server.port=18084
|
|
spring.cloud.nacos.discovery.server-addr=localhost:8848
|
|
|
|
spring.datasource.name="accountDataSource"
|
|
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
|
|
|
|
seata.enabled=true
|
|
spring.cloud.alibaba.seata.tx-service-group=account-service
|
|
seata.service.vgroup-mapping.account-service=default
|
|
seata.service.grouplist.default=127.0.0.1:8091
|
|
seata.service.disable-global-transaction=false
|
|
|
|
## 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
|
|
|