Created
December 29, 2013 07:21
-
-
Save omidp/8168270 to your computer and use it in GitHub Desktop.
spring Bootstrap
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
public class Bootstrap { | |
private static final Logger logger= LoggerFactory.getLogger(Bootstrap.class); | |
public static void main(String[] args) { | |
ApplicationContext context=new ClassPathXmlApplicationContext("META-INF/spring/...-context.xml"); | |
CustomerService customerService=(CustomerService) context.getBean("customerService"); | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment