Skip to content

Commit

Permalink
update for current Spring replacement of WebMvcConfigurerAdapter with…
Browse files Browse the repository at this point in the history
… WebMvcConfigurer
  • Loading branch information
dougbreaux committed Jan 22, 2024
1 parent eb958bc commit 29b2bf2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _posts/2020-10-11-Customize-SpringMVC-Jackson.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
title: Customizing SpringMVC Jackson Behaviors
tags: [ spring, springmvc, jackson, json ]
tags:
- spring
- springmvc
- jackson
- json
published: true
---
These days it seems almost all examples of doing anything with Spring assume Spring Boot, which we're not using. So here's my foray into modifying the Jackson `ObjectMapper` that SpringMVC configures and customizes by default.

Expand All @@ -15,7 +20,7 @@ After some Stack Overflow searches (again, almost entirely addressing how to do
*/
@EnableWebMvc
@Configuration
public class CustomWebConfiguration extends WebMvcConfigurerAdapter {
public class CustomWebConfiguration implements WebMvcConfigurer {

@Override
public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
Expand Down

0 comments on commit 29b2bf2

Please sign in to comment.