增加seata-demo工程

This commit is contained in:
zlt
2019-09-15 10:48:17 +08:00
parent 6632da7b19
commit deac4ac957
44 changed files with 1045 additions and 0 deletions
@@ -0,0 +1,11 @@
spring:
datasource:
url: jdbc:mysql://192.168.28.130:3306/seata-demo?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull
username: root
password: 1q2w3e4r
driver-class-name: com.mysql.jdbc.Driver
cloud:
alibaba:
seata:
# seata 服务分组,要与服务端nacos-config.txt中service.vgroup_mapping的后缀对应,默认是${spring.application.name}-fescar-service-group
tx-service-group: order-service-group
@@ -0,0 +1,10 @@
server:
port: 9091
spring:
application:
name: order-service
cloud:
nacos:
discovery:
server-addr: 192.168.28.130:8848
@@ -0,0 +1,26 @@
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "nacos"
nacos {
serverAddr = "192.168.28.130"
namespace = "public"
cluster = "default"
}
file {
name = "file.conf"
}
}
config {
# file、nacos 、apollo、zk、consul、etcd3
type = "nacos"
nacos {
serverAddr = "192.168.28.130"
namespace = "public"
cluster = "default"
}
file {
name = "file.conf"
}
}