import java.io.IOException;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ContextUtils {
public static final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"applicationContext.xml");
public static void main(String args[]) throws IOException {
ContextUtils.context.getBean("popMySqlDatasource");
}
}