seata1.3 + nacos1.1.4整合
参考:
SpringCloud Alibaba 微服务架构(十三)- SpringCloud 整合Seata 解决分布式事务
https://thinkingcao.blog.csdn.net/article/details/109320221
seata1.3 + nacos1.1.4
seata 整合 nacos(windows)
https://blog.csdn.net/weixin_45927841/article/details/125351324 (如何使用 nacos脚本nacos-config.sh,将以上信息提交到nacos控制台.)
Seata 1.4.0 + nacos配置和使用,超详细
https://blog.csdn.net/jixieguang/article/details/110621561
Seata 1.4.0 + Nacos 1.4.0 分布式事务实践(踩坑无数,一步成功)
https://blog.csdn.net/q932976085/article/details/113652898
springcloud nacos seata 分布式事物实战
https://juejin.cn/post/6854573215797215245
seata使用nacos进行配置
http://events.jianshu.io/p/1dbe66899c5e
Spring Alibaba Nacos + Seata 1.4.0搭建使用
https://www.cnblogs.com/bestlmc/p/14315180.html
***问题必须要看
NettyClientChannelManager : no available service default found,
A.
NettyClientChannelManager : no available service ‘null‘ found, please make sure registry config...
https://blog.csdn.net/qq_30718137/article/details/118055773
B.
no available service found in cluster ‘default‘, please make sure registry config correct and keep..
https://blog.csdn.net/MrMajr/article/details/121107267
官方文档:
https://seata.io/zh-cn/docs/overview/what-is-seata.html
1.registry.conf
以下为配置信息
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "nacos"
nacos {
application = "seata-server"
serverAddr = "10.100.1.43:8848"
group = "SEATA_GROUP"
namespace = "9678eac7-9884-4eef-9876-8654ee798d7d"
cluster = "default"
username = "nacos"
password = "nacos"
}
}
config {
# file、nacos 、apollo、zk、consul、etcd3
type = "nacos"
nacos {
serverAddr = "127.0.0.1:8848"
namespace = "9678eac7-9884-4eef-9876-8654ee798d7d"
group = "SEATA_GROUP"
cluster = "default"
username = "nacos"
password = "nacos"
}
}
_____________________________________________________________________
2.file.conf
store {
## store mode: file、db、redis
mode = "db"
## database store property
db {
## the implement of javax.sql.DataSource, such as DruidDataSource(druid)/BasicDataSource(dbcp)/HikariDataSource(hikari) etc.
datasource = "druid"
## mysql/oracle/postgresql/h2/oceanbase etc.
dbType = "mysql"
driverClassName = "com.mysql.jdbc.Driver"
url = "jdbc:mysql://xxxx:3306/seata?allowMultiQueries=true&autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai"
user = "root"
password = "xxxxx"
minConn = 5
maxConn = 30
globalTable = "global_table"
branchTable = "branch_table"
lockTable = "lock_table"
queryLimit = 100
maxWait = 5000
}
3.应用程序 application.yml配置
#Seata分布式事务配置(AT模式) seata: enabled: true #开启seata支持 application-id: ${spring.application.name} #客户端和服务端在同一个事务组 tx-service-group: my_test_tx_group #这里需要和config.txt文件中 service.vgroupMapping.my_test_tx_group=default 相一致 enable-auto-data-source-proxy: true config: type: nacos nacos: namespace: "9678eac7-9884-4eef-9876-8654ee798d7d" serverAddr: 10.100.1.43:8848 group: SEATA_GROUP username: "nacos" password: "nacos" service: vgroup-mapping: my_test_tx_group: default #注意必须与 tx-service-group相同 #服务注册到nacos registry: type: nacos nacos: application: seata-server #这里必须和 registry.conf, nacos中application="seata-server"同名 server-addr: 10.100.1.43:8848 group: SEATA_GROUP namespace: 9678eac7-9884-4eef-9876-8654ee798d7d #必须添加自己的NameSpace否则默认为 public cluster: default username: "nacos" password: "nacos"

浙公网安备 33010602011771号