Oct 1st, 2008, 12:02 PM
Convention over configuration: where do you put your Spring configuration files?
I'm interested in what kinds of standards people are using for Spring config file locations, especially when packaging POJO jars.
I heard in a Spring user's group that the "right" place is under folder "meta-inf/spring", i.e.
Is this the common practice? I've recently implemented a different convention, just putting the files in meta-inf/applicationContext.xml. I'm wondering if we should consider using the above convention instead, especially if it's going to make things like OSGI easier to implement.
Oct 1st, 2008, 01:52 PM
I generally put them just in the root of the jar. The META-INF/spring is a good location if you are using Spring DM or our dm Server. The META-INF/spring directory is scanned for xml files to use for the ApplicationContext.
Oct 1st, 2008, 04:20 PM
We store them in a folder called 'spring' at the root of the jar , e.g.
Tags for this Thread