自从我将 Controller 从经典继承迁移到使用 @Controller 和 @RequestMapping 等注释后,我遇到了很多麻烦。问题是我不知道如何像旧案例那样插入验证。有什么好的教程吗?
最佳答案
看看§13.11.x of the Spring MVC documentation .它涵盖了基于注释的 Controller 配置,包括数据绑定(bind)。应该对你很有用。
祝你好运!
关于java - 带有注释的 Spring MVC 验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/489703/