ApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[] { "applicationContext-dao.xml","applicationContext-action.xml"});//获取配置文件
SocketPackageService socketPackageService = (SocketPackageService) applicationContext.getBean("socketPackageService");//获取bean
SocketPackageService socketPackageService = (SocketPackageService) applicationContext.getBean("socketPackageService");//获取bean