Skip to content

Instantly share code, notes, and snippets.

View sourcerebels's full-sized avatar

Edu Rodríguez Castillo sourcerebels

View GitHub Profile
@sourcerebels
sourcerebels / LoadSpringConfig.java
Created February 8, 2010 09:06
How to load Spring XML configuration file from Java
public class LoadSpringConfig {
public static void main(String[] args) {
String[] configurationFiles = { "path_to_your_spring_xml_configuration_file" };
ApplicationContext ctx = new FileSystemXmlApplicationContext(configurationFiles);
}
}