Support compiling with Spring 7 in Spring AI 1.1 #4988
Closed
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.
Use methods from HttpHeaders which are available both from Spring 6 and Spring 7 Make sure that the entire Spring AI compiles with Spring 7
@Overridefrom methods implementing from ResponseHandlerThis PR is the same as #4817 which was closed due to PR #4774 which added Spring Boot 4.x compatibility to main. However, it would be good if Spring AI 1.1.x would do a best effort to be able to be used with Spring 7. The reason why I am asking this is due to the fact that we are using Spring AI, but we have also migrated to Spring Boot 4 and Spring 7. In order to achieve this we've had to copy the
spring-ai-openaiandspring-ai-anthropicmodules and do the adjustments that are done in this PR. It would be great if this comes out-of-the-box from Spring AI itself and we can remove our copy.Thank you in advance for considering the PR