-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: support server start with springboot and config with application.yaml #3009
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3009 +/- ##
=============================================
- Coverage 50.46% 50.44% -0.03%
+ Complexity 3111 3107 -4
=============================================
Files 593 594 +1
Lines 19571 19573 +2
Branches 2427 2427
=============================================
- Hits 9876 9873 -3
- Misses 8702 8705 +3
- Partials 993 995 +2
|
resolve the conflict |
Codecov Report
@@ Coverage Diff @@
## develop #3009 +/- ##
==============================================
- Coverage 52.15% 41.67% -10.48%
+ Complexity 3509 2883 -626
==============================================
Files 638 652 +14
Lines 21108 21332 +224
Branches 2613 2616 +3
==============================================
- Hits 11009 8891 -2118
- Misses 9014 11635 +2621
+ Partials 1085 806 -279
|
resolve code conflicts |
标题中的 |
fixed |
...autoconfigure-core/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
...autoconfigure-core/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
...autoconfigure-core/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Outdated
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Show resolved
Hide resolved
...toconfigure-client/src/main/resources/META-INF/additional-spring-configuration-metadata.json
Show resolved
Hide resolved
...e/src/main/java/io/seata/spring/boot/autoconfigure/SeataCorePropertiesAutoConfiguration.java
Show resolved
Hide resolved
...oconfigure-client/src/test/java/io/seata/spring/boot/autoconfigure/ClientPropertiesTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #3009 +/- ##
==============================================
- Coverage 51.23% 41.03% -10.20%
+ Complexity 3569 2946 -623
==============================================
Files 645 659 +14
Lines 21814 22055 +241
Branches 2736 2736
==============================================
- Hits 11176 9051 -2125
- Misses 9499 12159 +2660
+ Partials 1139 845 -294
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please modify 1.5.0.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this.
fixes #2984
1、server端可以通过 springboot/脚本/java -jar 等方式正常启动
2、server端引用
seata-spring-autoconfigure-server
后可以正常读取到配置项3、客户端引用
seata-spring-boot-starter
后可以正常读取到配置项主要做了以下改造:
1、将 seata-spring-boot-starter 中和配置相关的内容提取出来,封装成单独的模块
seata-spring-autoconfigure
2、client和server端依赖的属性不同,因此将
seata-spring-autoconfigure
分成三个子模块:seata-spring-autoconfigure-client
、seata-spring-autoconfigure-server
、seata-spring-autoconfigure-core
。seata-spring-autoconfigure-core
表示一些通用属性,同时被seata-spring-autoconfigure-client
和seata-spring-autoconfigure-server
引用3、针对客户端:在
seata-spring-boot-starter
中引用seata-spring-autoconfigure-client
4、针对服务端:在
seata-server
中引用seata-spring-autoconfigure-server