Controller:控制层;
Service:服务层;
Dao:持久层;
Autowired:自动注入;
RequestMapping:请求映射
如:
@RequestMapping("/showitem/{itemId}")
public String showItemParam(@PathVariable Long itemId,Model model){
String string = itemParamItemService.getItemParamByItemId(itemId);
model.addAttribute("itemParam", string);
return "item";
}
ResponseBody:Annotation that indicates a method return value should be bound to the web response body
Scope:作用域
待完成