摘要: 配置文件格式: 引入配置文件: ApplicationContext cxt = new ClassPathXmlApplicationContext("applicationContext.xml"); 构造2个bean 进行注入: 调用:UserService service=cxt.getBean("service",UserService.class); User user=new User(); service.UserSava(user); 阅读全文
posted @ 2013-10-09 16:33 伟我独high 阅读(139) 评论(0) 推荐(0) 编辑