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
Post a Comment