ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext-redis.xml"); JedisPool redisClient = (JedisPool)ac.getBean("jedisPool");
转载请注明:SuperIT » spring加载xml
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext-redis.xml"); JedisPool redisClient = (JedisPool)ac.getBean("jedisPool");
转载请注明:SuperIT » spring加载xml