@ -151,10 +151,9 @@ You can now register dynamic properties in tests by contributing `DynamicPropert
@@ -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: