Created
April 5, 2012 06:44
-
-
Save enesakar/2308514 to your computer and use it in GitHub Desktop.
test spring main class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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