Spring Form: select bean according to params
问题 I've got a question concerning Spring forms (with Thymeleaf, to be specific). I know that I can use only one bean at a time to back a form in Spring, so I thought it would be nice to let the Controller select which bean should be bound to the form,depending on which parameters are sent. But instead of writing a new RequestMapping for every new param, I wondered if I could somehow map the params only to the ModelAttribute itself. I thought of something like this: @Controller public class