public static void testSaveTvList() { ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml"); IHuanApiService huanApiService = (IHuanApiService) context.getBean("huanApiService"); TvListRequestAck ack = huanApiService.getTodayChannelPrograms(); ITvListDao tvListDao = (ITvListDao) context.getBean("tvListDao"); tvListDao.saveTvlist(ack.getData(), false); System.out.println(tvListDao.findTvListByDay(new Date())); }