dbcp获取dataSource
1)获取dataSource:
ApplicationContext ctx=
new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/classes/applicationContext.xml");
DataSource dataSource = (BasicDataSource)ctx.getBean("datasource");
1)获取dataSource:
ApplicationContext ctx=
new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/classes/applicationContext.xml");
DataSource dataSource = (BasicDataSource)ctx.getBean("datasource");