增加seata-demo工程
This commit is contained in:
@@ -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: storage-service-group
|
||||
@@ -0,0 +1,10 @@
|
||||
server:
|
||||
port: 9092
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: storage-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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user