opsb
Mar 20th, 2006, 06:17 AM
In my web.xml I have my context locations specified as
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring*.xml</param-value>
</context-param>
All of my spring config files are named in the pattern spring*.xml and are in the root of the classpath.
Unfortunately the dispatcherservlet doesn't seem to pick up these files. I realise that I could just use the absolute path to the files but I'm also using spring xml's that are located in a jar on the classpath. I want the xml's that are outside of the jar to be able to see the xml's inside the jar and for the dispatcherservlet config to be able to see everything. Has anyone done something similar?
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring*.xml</param-value>
</context-param>
All of my spring config files are named in the pattern spring*.xml and are in the root of the classpath.
Unfortunately the dispatcherservlet doesn't seem to pick up these files. I realise that I could just use the absolute path to the files but I'm also using spring xml's that are located in a jar on the classpath. I want the xml's that are outside of the jar to be able to see the xml's inside the jar and for the dispatcherservlet config to be able to see everything. Has anyone done something similar?