GitHub user lin-sion closed the discussion with a comment: 
spring-cloud-starter-alibaba-seata:2025.0.0.0项目启动失败

我的问题解决了,感谢陈大的耐心帮忙.现在把解决的过程总结一下
1. 
seata-server部分,只需要正常的配置就行,我这边使用的nacos+db,里面配置nacos的config和registry,然后nacos里面配置db的参数
2. seata-client部分,项目里面引入seata的依赖,我用的start的依赖,不用再额外写配置类,这里面配置的有三部分
   2.1 
在项目的配置文件中配置seata.tx-service-group=【你项目的事务分组名】和nacos的registry和config,registry部分和seata-server的一样,config部分需要配置data-id,比如seata-client,当然你也可以使用seata默认的名字,那样就不需要额外指定
   2.2 
在nacos中创建一个配置信息,名字就是上2.1config里的data-id,比如seata-client的properties.里面写上事务映射关系,service.vgroupMapping.【你项目的事务分组名】=【seata-server里面的cluster】
然后就可以正常启动项目了
这里面需要注意的点就是,seata-server部分只配自己的,group,namespace啥的都可以随意,只需要记住一点,seata-server的部分都放同一区域,然后client部分,只需要registry的配置配成seata-server一样的,这样服务方和客户端才注册到同一个地方。config部分随意就行,只要确保能加载这个配置就行

GitHub link: 
https://github.com/apache/incubator-seata/discussions/7947#discussioncomment-15529021

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to