fix: select Spring 6 REST adapter for samples#1297
Draft
SavitarC wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
dubbo-rest-spring6Maven profile to the Spring MVC Triple REST sample-Ddubbo.rest.spring6=true, explicitly select:dubbo-spring-boot-3-autoconfiguredubbo-rest-spring6Why
apache/dubbo#16394 separates the Spring 5 and Spring 6 REST adapters and removes the legacy
dubbo-rest-springimplementation from the aggregatedubboJAR.These Spring Boot 3 samples currently depend only on
dubbo-spring-boot-starter. With the candidate build from apache/dubbo#16394, no REST Spring adapter is present, Spring MVC request mappings are not registered, and the sample tests receive404 Invoker not foundresponses.The profile makes the adapter selection explicit while allowing the Dubbo pull request CI to test its locally built
3.3.7-SNAPSHOTartifacts.Compatibility
The profile is disabled by default. Normal sample builds therefore remain compatible with the currently released Dubbo 3.3.1, which does not provide
dubbo-rest-spring6.After a Dubbo release containing
dubbo-rest-spring6becomes the samples baseline, these dependencies can become unconditional and the temporary activation property can be removed.Validation
3.3.7-SNAPSHOTdependencies when-Ddubbo.rest.spring6=trueis setgit diff --checkpassedRelated