[url]http://www.360doc.com/content/12/1201/17/820209_251401948.shtml[/url]
package com.hehe.eppage.framework.sysutil;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.travelsky.eppage.framework.system.EPPConstants;
public class ApplicationContextUtil implements ApplicationContextAware{
private static ApplicationContext ctx = null;
private static ApplicationContext getContext(){
if (ctx == null) {
synchronized (ApplicationContextUtil.class) {
if (ctx == null ) {
ctx = new ClassPathXmlApplicationContext(new String[]{"classpath:EPPage_applicationContext_basic.xml","clas