由于做单元测试时,Web 服务并未启动,所以我们需要手动加载proxool连接池...
try { // 获取配置文件句柄 String lvsPath=Class.class.getClass().getResource("/").getPath() ; lvsPath=lvsPath+"../../src/main/webapp/WEB-INF/proxool.xml"; File file = new File(lvsPath); //单元测试未启动web service,所以要自已加载proxool configurator JAXPConfigurator.configure(lvsPath, false); } catch (ProxoolException e) { throw e; }