Skip to content

Instantly share code, notes, and snippets.

@enesakar
Created April 5, 2012 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enesakar/2308514 to your computer and use it in GitHub Desktop.
Save enesakar/2308514 to your computer and use it in GitHub Desktop.
test spring main class
package com.springhazelcast;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
public class Main {
public static void main(String[] args) {
ApplicationContext ctx = new GenericXmlApplicationContext("beans.xml");
TestBean testBean = (TestBean) ctx.getBean("springTestBean");
System.out.println(testBean.getResult());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment