2015年6月27日
摘要: 用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册:1:@Repository 标注在持久层,即dao,用于标注数据访问。2:@Service 标注在业务层,即service,用于标注业务逻辑。3:@Controller 标注在控制层。4:@Compon... 阅读全文
posted @ 2015-06-27 10:07 SkyBall 阅读(152) 评论(0) 推荐(0)