Paweł Chudzik 11/10/2017

Conversions in spring

Read Original

This technical article details the process of creating a custom type converter in Spring to handle a custom 'Id' class as a controller method parameter. It covers the initial failure of a simple Converter implementation during @WebMvcTest, explains the underlying type exclusion filter, and presents alternative solutions like using @InitBinder with a PropertyEditor to make the conversion work in a test environment.

Conversions in spring

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes