首页 > 试题广场 >

使用 Spring MVC 时,@ModelAttribut

[单选题]
使用 Spring MVC 时,@ModelAttribute 注解在方法参数上的作用是?
  • 强制从 Session 中读取数据而非请求参数
  • 将 HTTP 请求参数自动绑定到 Java 对象
  • 验证参数格式是否符合正则表达式
  • 将返回值直接序列化为 JSON 响应
mark
发表于 2026-03-05 18:08:33 回复(0)