Where to put Spring context file for a Maven/Java project with no WEB-INF directory? -


i want use spring non-web java project. should context file go? how identify locations spring container?

i'm sure there various choices, web application typical put things in web-inf, , declare locations in web.xml. how done in stand-alone app?

put in resources folder. , use classpathxmlapplicationcontext load them. use packages java classes use. e.g. src/main/resources/com/myapp/somemodule/context.xml.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -