You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "typefield (via GitHub)" <gi...@apache.org> on 2026/06/27 13:14:09 UTC

[PR] Support Spring Boot 4 auto configuration [dubbo]

typefield opened a new pull request, #16360:
URL: https://github.com/apache/dubbo/pull/16360

   ## What is the purpose of the change
   
   Support Spring Boot 4 for Dubbo Spring Boot integration.
   
   Fixes #16214.
   
   ## Brief changelog
   
   - Add `dubbo-spring-boot-4-autoconfigure` and `dubbo-spring-boot-starter4` modules.
   - Add Spring Boot 4 Triple servlet/websocket auto-configuration using the Spring Boot 4 Tomcat factory API.
   - Keep Spring Boot 3 auto-configuration scoped to Boot 3 and add a dedicated Boot 4 dependency check auto-configuration.
   - Add Boot 4 auto-configuration smoke tests for Triple servlet, websocket, defaults, and Tomcat HTTP/2 customization.
   
   ## Verifying this change
   
   - `./mvnw -pl dubbo-spring-boot-project/dubbo-spring-boot-4-autoconfigure -am -P spring-boot-4 -Dtest=DubboTriple4AutoConfigurationTest -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false -Dspotless.check.skip=true -Dlicense.skip=true -Dcheckstyle.skip=true test`
   - `./mvnw -pl dubbo-spring-boot-project/dubbo-spring-boot-autoconfigure,dubbo-spring-boot-project/dubbo-spring-boot-4-autoconfigure,dubbo-spring-boot-project/dubbo-spring-boot-starters/dubbo-spring-boot-starter4 -am -P spring-boot-4 -DskipTests -Dspotless.check.skip=true -Dlicense.skip=true compile`
   - `./mvnw -pl dubbo-spring-boot-project/dubbo-spring-boot-autoconfigure,dubbo-spring-boot-project/dubbo-spring-boot-3-autoconfigure,dubbo-spring-boot-project/dubbo-spring-boot-4-autoconfigure -P spring-boot-4 -DskipTests spotless:check`
   
   Note: a broader `-am test` run was stopped by pre-existing or environment-sensitive failures in `dubbo-common` before reaching this module, so the verification above narrows the test run to the new Boot 4 test while compiling the required reactor.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [PR] Support Spring Boot 4 auto configuration [dubbo]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #16360:
URL: https://github.com/apache/dubbo/pull/16360#issuecomment-4818035007

   ## [Codecov](https://app.codecov.io/gh/apache/dubbo/pull/16360?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `9.80392%` with `46 lines` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 29.80%. Comparing base ([`2626e28`](https://app.codecov.io/gh/apache/dubbo/commit/2626e28c16193a099b9cf89e133cd9d55b7d9add?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`92df4bd`](https://app.codecov.io/gh/apache/dubbo/commit/92df4bd2fbb6c34fc8cb990ae4885d5e08741941?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/dubbo/pull/16360?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...t/autoconfigure/DubboTriple4AutoConfiguration.java](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&filepath=dubbo-spring-boot-project%2Fdubbo-spring-boot-4-autoconfigure%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fdubbo%2Fspring%2Fboot%2Fautoconfigure%2FDubboTriple4AutoConfiguration.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZHViYm8tc3ByaW5nLWJvb3QtcHJvamVjdC9kdWJiby1zcHJpbmctYm9vdC00LWF1dG9jb25maWd1cmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2R1YmJvL3NwcmluZy9ib290L2F1dG9jb25maWd1cmUvRHViYm9UcmlwbGU0QXV0b0NvbmZpZ3VyYXRpb24uamF2YQ==) | 0.00% | [24 Missing :warning: ](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...pring/boot/autoconfigure/SpringBoot4Condition.java](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&filepath=dubbo-spring-boot-project%2Fdubbo-spring-boot-4-autoconfigure%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fdubbo%2Fspring%2Fboot%2Fautoconfigure%2FSpringBoot4Condition.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZHViYm8tc3ByaW5nLWJvb3QtcHJvamVjdC9kdWJiby1zcHJpbmctYm9vdC00LWF1dG9jb25maWd1cmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2R1YmJvL3NwcmluZy9ib290L2F1dG9jb25maWd1cmUvU3ByaW5nQm9vdDRDb25kaXRpb24uamF2YQ==) | 0.00% | [11 Missing :warning: ](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...oot/autoconfigure/SpringBoot4OrLaterCondition.java](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&filepath=dubbo-spring-boot-project%2Fdubbo-spring-boot-autoconfigure%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fdubbo%2Fspring%2Fboot%2Fautoconfigure%2FSpringBoot4OrLaterCondition.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZHViYm8tc3ByaW5nLWJvb3QtcHJvamVjdC9kdWJiby1zcHJpbmctYm9vdC1hdXRvY29uZmlndXJlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9kdWJiby9zcHJpbmcvYm9vdC9hdXRvY29uZmlndXJlL1NwcmluZ0Jvb3Q0T3JMYXRlckNvbmRpdGlvbi5qYXZh) | 45.45% | [3 Missing and 3 partials :warning: ](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...boSpringBoot4DependencyCheckAutoConfiguration.java](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&filepath=dubbo-spring-boot-project%2Fdubbo-spring-boot-autoconfigure%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fdubbo%2Fspring%2Fboot%2Fautoconfigure%2FDubboSpringBoot4DependencyCheckAutoConfiguration.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZHViYm8tc3ByaW5nLWJvb3QtcHJvamVjdC9kdWJiby1zcHJpbmctYm9vdC1hdXRvY29uZmlndXJlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9kdWJiby9zcHJpbmcvYm9vdC9hdXRvY29uZmlndXJlL0R1YmJvU3ByaW5nQm9vdDREZXBlbmRlbmN5Q2hlY2tBdXRvQ29uZmlndXJhdGlvbi5qYXZh) | 0.00% | [5 Missing :warning: ](https://app.codecov.io/gh/apache/dubbo/pull/16360?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   > :exclamation:  There is a different number of reports uploaded between BASE (2626e28) and HEAD (92df4bd). Click for more details.
   > 
   > <details><summary>HEAD has 8 uploads less than BASE</summary>
   >
   >| Flag | BASE (2626e28) | HEAD (92df4bd) |
   >|------|------|------|
   >|unit-tests-java8|1|0|
   >|samples-tests-java21|1|0|
   >|unit-tests-java25|1|0|
   >|unit-tests-java11|1|0|
   >|unit-tests-java21|1|0|
   >|integration-tests-java21|1|0|
   >|integration-tests-java8|1|0|
   >|unit-tests-java17|1|0|
   ></details>
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@              Coverage Diff              @@
   ##                3.3   #16360       +/-   ##
   =============================================
   - Coverage     60.81%   29.80%   -31.01%     
   - Complexity       30     9443     +9413     
   =============================================
     Files          1953     1956        +3     
     Lines         89213    89242       +29     
     Branches      13460    13382       -78     
   =============================================
   - Hits          54254    26600    -27654     
   - Misses        29374    58522    +29148     
   + Partials       5585     4120     -1465     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [integration-tests-java21](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration-tests-java8](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [samples-tests-java21](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [samples-tests-java8](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `29.80% <9.80%> (-0.02%)` | :arrow_down: |
   | [unit-tests-java11](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [unit-tests-java17](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [unit-tests-java21](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [unit-tests-java25](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [unit-tests-java8](https://app.codecov.io/gh/apache/dubbo/pull/16360/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/dubbo/pull/16360?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org