コード例 #1
0
ファイル: TvListTest.java プロジェクト: QLzheng/smart-server
 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()));
 }