Last active
November 18, 2015 08:07
-
-
Save deepak/5ffcaf595ca879711710 to your computer and use it in GitHub Desktop.
spring hello world
This file contains hidden or 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
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.FileSystemXmlApplicationContext; | |
public class Main { | |
public static void main(String[] args) { | |
ApplicationContext context = new FileSystemXmlApplicationContext("spring.xml"); | |
Triangle shape = (Triangle) context.getBean("triangle"); | |
shape.draw(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment