Esempio n. 1
0
 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()));
 }
Esempio n. 2
0
 /** @param args */
 public static void main(String[] args) {
   ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml");
   IHuanApiService huanApiService = (IHuanApiService) context.getBean("huanApiService");
   TvListRequestAck ack = huanApiService.getTodayChannelPrograms();
   System.out.println(ack.getData());
 }