通过设置默认属性来简化yml配置来删除冗余配置项目 #3986
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi everyone,
This is my first Pull Request, and I'm a sophomore in Beijing University of Posts and Telecommunications,I'm still learning a lot , but I'm excited to contribute to this project, maybe there will be some problems, following is what I had done as the suggestions given by this table:
Describe what this PR does / why we need it
Does this pull request fix one issue?
Fixes #3756
Describe how you did it
Removed duplicate configs: Eliminated redundant properties in seata.config and seata.registry that overlap with global Nacos settings.
Leveraged defaults: Relied on Seata’s default behaviors (e.g., auto-generated transaction group names, seata-server service discovery).
Kept critical configs: Only retained seata.enabled=true to ensure functionality.
Describe how to verify it
Start dependencies: Ensure Nacos and Seata Server are running.
Test transactions: Invoke a method annotated with @GlobalTransactional to verify distributed transactions.
Log inspection: Check Seata client/server logs for errors related to missing configurations.
Special notes for reviews
Version compatibility: Confirm compatibility between Spring Cloud Alibaba and Seata (e.g., 2021.0.x + Seata 1.5.x).
Custom needs: Explicit configurations are required if using non-default DataId or service names.
Thanks for your time and support !
Best regards,
qichen012