Polishing

master
Sam Brannen 1 year ago
parent
commit
ec86a11b5b
  1. 15
      Spring-Framework-6.2-Release-Notes.md

15
Spring-Framework-6.2-Release-Notes.md

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
## Upgrading From Spring Framework 6.1
### Baseline upgrades
### Baseline Upgrades
Spring Framework 6.2 raises its minimum requirements with the following libraries:
@ -80,7 +80,7 @@ Otherwise, the container will pick transparently the one that’s been defined e @@ -80,7 +80,7 @@ Otherwise, the container will pick transparently the one that’s been defined e
[See the dedicated section in the reference documentation.](https://docs.spring.io/spring-framework/reference/6.2-SNAPSHOT/core/beans/annotation-config/autowired-qualifiers.html#page-title)
### Bean Background Initialization
### Background bean initialization
Individual beans can be initialized in the background using the newly introduced bootstrap attribute.
@ -98,12 +98,11 @@ class MyConfiguration { @@ -98,12 +98,11 @@ class MyConfiguration {
[Check the reference guide for more details about this new feature](https://docs.spring.io/spring-framework/reference/6.2/core/beans/java/composing-configuration-classes.html#beans-java-startup-background).
### Bean overriding in tests, `@TestBean`, `@MockitoBean` and `@MockitoSpyBean`
### Bean overriding in tests, `@TestBean`, `@MockitoBean`, and `@MockitoSpyBean`
[See our new reference documentation section on these features](https://docs.spring.io/spring-framework/reference/6.2/testing/testcontext-framework/bean-overriding.html)
and [the dedicated blog post](https://spring.io/blog/2024/04/16/spring-framework-6-2-0-m1-overriding-beans-in-tests) published during the milestones phase.
### AssertJ support for MockMvc
We love AssertJ! While Spring Boot has already jumped on that train a while ago and provides several testing facilities using it, the framework team has been more conservative. At the same time, we recognize that our Hamcrest support may not fit everyone’s needs: the use of static imports make the API less discoverable and writing custom assertions is harder.
@ -137,21 +136,20 @@ assertThat(mvc.perform(get("/message"))) @@ -137,21 +136,20 @@ assertThat(mvc.perform(get("/message")))
[See the reference documentation for more on that](https://docs.spring.io/spring-framework/reference/6.2/testing/mockmvc/assertj.html).
### Dynamic properties can now be registered from within a test's ApplicationContext
### Dynamic properties can now be registered from within a test's `ApplicationContext`
You can now register dynamic properties in tests by contributing `DynamicPropertyRegistrar` beans to the context.
[See related documentation](https://docs.spring.io/spring-framework/reference/6.2/testing/testcontext-framework/ctx-management/dynamic-property-sources.html).
### UrlHandlerFilter for trailing slash match
### `UrlHandlerFilter` for trailing slash match
Spring Framework recently deprecated the trailing slash match option in `PathMatchConfigurer`, the Spring community requested a way to gracefully handle this transition period in large applications.
The new `UrlHandlerFilter` Servlet and reactive filters will help redirecting or rewriting incoming URLs with a trailing slash `"/blog/blog-title/"` to `"/blog/blog-title"`.
[Check out the reference documentation for this](https://docs.spring.io/spring-framework/reference/6.2-SNAPSHOT/web/webmvc/filters.html#filters.url-handler).
### New URL parser implementations
Spring Framework 6.2 introduces new URL parser implementations.
@ -187,14 +185,13 @@ public String handle(IllegalArgumentException exc, Model model) { @@ -187,14 +185,13 @@ public String handle(IllegalArgumentException exc, Model model) {
Here, automated clients will get a JSON response, while browsers will display an HTML error page with custom messages.
### Easier reflection hints registration for Native apps
### Easier reflection hint registration for Native apps
We have significantly improved the developer experience of registering reflection hints.
`@RegisterReflection` has been introduced to easily register hints against arbitrary data types,
and `@ReflectionScan` lets you opt-in for scanning of any reflection hints on arbitrary classes, not only Spring beans.
See [the reference documentation section for this](https://docs.spring.io/spring-framework/reference/6.2/core/aot.html#aot.hints.reflective).
### Miscellaneous
Apart from the changes listed above, there have also been a lot of minor tweaks, improvements, and bug fixes including:

Loading…
Cancel
Save