如
@RequestMapping(method = RequestMethod.GET)
public String index(Model model, String name, HttpServletRequest request) {
//
//中间查询代码
//
model.addAttribute("name", name);//这句是否能省掉,因为查询条件可能会很多
}
不知道表达清楚
spring是否有相应注解?