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

No top articles yet