public static void testSaveEpgModel() { ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml"); IEpgModelDao epgModelDao = (IEpgModelDao) context.getBean("epgModelDao"); ITvListDao tvListDao = (ITvListDao) context.getBean("tvListDao"); TvListRequestAckData tvList = tvListDao.findTvListByDay("2013-04-10"); epgModelDao.saveEpgModelsByTvList(tvList); }