spring4 controller 传入参数是否能自动add到model里面

@RequestMapping(method = RequestMethod.GET)
public String index(Model model, String name, HttpServletRequest request) {
//
//中间查询代码
//

          model.addAttribute("name", name);//这句是否能省掉,因为查询条件可能会很多
    }


    不知道表达清楚
    spring是否有相应注解?

应该不能,如果查询条件多可以通过对象传递。
@RequestMapping(method = RequestMethod.GET)
public String index(Model model, A a, HttpServletRequest request) {
model.addAttribute("A", a);//页面获取name --${a.name}
}