Relative Content

Tag Archive for javaspringspring-mvcjackson-databind

Custom StringDeserializer in a Spring Web MVC Project

I’m working on a Spring MVC project and I need to globally override the default StringDeserializer provided by Jackson to sanitize incoming JSON strings. My goal is to apply this sanitization to all String fields in my DTOs without having to annotate each fiels individually (more that 200 DTOs to cover).