chore: update spring boot to version 3.3.1 #784
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.
Description
This PR addresses #380.
The
CustomUriTagProvider
class has been renamed toCustomKeyValueProvider
. This is due to the fact that Spring 3.2 dropped some classes and the code now uses their replacement. This replacement class no longer uses theTag
class, but theKeyValue
andKeyValues
classes.Starting with Spring Framework 6.1 (Spring Boot 3.3.1 brings version 6.1.10), Spring's
LocalVariableTableParameterNameDiscoverer
can no longer be used to discover parameter names, see https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention. This required some changes in the code:Methods in the rest controller classes now explicitly include parameter names in the
@PathVariable
and@RequestParameter
annotations, otherwise the parameters are not recognized. In the methods that were changed, the (apparently generally superfluous) validation of passed UUIDs using@Size
has been removed since it caused errors. The OpenAPI spec has been adapted accordingly. An integration test has been added inBatchControllerTest
to verify that this removal does not allow requests with malformed UUIDs.When using the
@Cacheable
annotation (e.g. inSemanticsHubFacade
), it is no longer possible to use a SpEl expression like"#urn"
to specify the caching key. Instead, the code now needs a SpEl-Expression like"#p0"
, see https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/cache/annotation/Cacheable.html#key().Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review: