use of com.rainsoft.dao.FtpDao in project beijingThirdPeriod by weidongcao.
the class TestSpringOracle method testSpringConnectionOracle.
private static void testSpringConnectionOracle() {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("spring-module.xml");
FtpDao ftpDao = (FtpDao) context.getBean("ftpDao");
// 获取数据库一天的数据
RegContentFtp ftp = ftpDao.getFtpById(1905067);
JSONObject jsonObject = JSONObject.fromObject(ftp);
System.out.println(jsonObject.toString());
context.close();
}
Aggregations