Mar 8th, 2011, 02:34 PM
A built-in Main bootstraper in Spring core?
Many times we just need a Main class that bootstrap the spring context, and let it run. Though loading Spring context with xml is very simple, just one class away (eg: FileSystemXmlApplicationContext), but I think it would be useful if Spring comes with one built-in that will take any spring xml files and auto bootstrap into running process from a command line.
Not looking for any fancy, full blown server capability, but just a simple bootstraper readily available in spring-core.jar would be very useful, so as user don't have to provide one in each project for simple use cases.
What others think on this?
Mar 21st, 2012, 09:39 AM
I wrote a simple one, and you can try it here: http://code.google.com/p/spring-runner
Last edited by saltnlight5; Mar 21st, 2012 at 10:07 AM.