Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active November 18, 2015 08:07
Show Gist options
  • Save deepak/5ffcaf595ca879711710 to your computer and use it in GitHub Desktop.
Save deepak/5ffcaf595ca879711710 to your computer and use it in GitHub Desktop.
spring hello world
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