Created
February 8, 2010 09:06
-
-
Save sourcerebels/298001 to your computer and use it in GitHub Desktop.
How to load Spring XML configuration file from Java
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 LoadSpringConfig { | |
public static void main(String[] args) { | |
String[] configurationFiles = { "path_to_your_spring_xml_configuration_file" }; | |
ApplicationContext ctx = new FileSystemXmlApplicationContext(configurationFiles); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment