spring以及spring mvc中常用注解整理
@RequestMapping(映射路径)
@Autowired(注入bean对象)
例如:
@Autowired
private BaseGroupDao baseGroupDao;
@Controller(Controller层)
@Repository(dao层)
@Service(Service层)
@RequestMapping(映射路径)
@Autowired(注入bean对象)
例如:
@Autowired
private BaseGroupDao baseGroupDao;
@Controller(Controller层)
@Repository(dao层)
@Service(Service层)