After updating Spring Boot 2.3.0.RELEASE to 2.3.1.RELEASE, domian class conversion stopped working inside controller methods.
Here is the reference controller, which was working perfectly fine till Spring Boot 2.3.0.RELEASE
@Controller
@RequestMapping("/users")
class UserController {
@RequestMapping("/{id}")
String showUserForm(@PathVariable("id") User user, Model model) {
model.addAttribute("user", user);
return "userForm";
}
}
in 2.3.1.RELEASE, I get the below error, when i make the following request
GET /users/<userid>
2020-06-17 13:07:12.780 WARN 574637 --- [ XNIO-1 task-3] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.xxx.User'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'com.xxx.User': no matching editors or conversion strategy found]