-
Create the standalone application with maven, as pointed here:
Create a standalone application with Maven
-
Put the applicationContext in classpath, and load it in the main class as follows:
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");See full article here:
http://www.devdaily.com/blog/post/java/load-spring-application-context-file-java-swing-application