diff --git a/Spring-Framework-6.2-Release-Notes.md b/Spring-Framework-6.2-Release-Notes.md index 2393a0a..e0666eb 100644 --- a/Spring-Framework-6.2-Release-Notes.md +++ b/Spring-Framework-6.2-Release-Notes.md @@ -151,10 +151,9 @@ You can now register dynamic properties in tests by contributing `DynamicPropert [See related documentation](https://docs.spring.io/spring-framework/reference/6.2/testing/testcontext-framework/ctx-management/dynamic-property-sources.html). -### Content negotiation support for `@ExceptionHandler` methods +### Content negotiation for `@ExceptionHandler` methods -`@ExceptionHandler` methods are now more flexible as [they support content negotiation during the error handling phase](https://github.com/spring-projects/spring-framework/issues/31936). -This means that you can tailor error handling depending on the content type requested by the HTTP client. +`@ExceptionHandler` methods now [support content negotiation during error handling](https://github.com/spring-projects/spring-framework/issues/31936). It allows selecting a content type for error responses depending on what the client requested. Here's a code snippet showing this feature in action: