I have a simple webapp which use Spring Boot web and
I have a web.xml file in
src/main/webapp/WEB-INF which contains context-param like this
<context-param>
<description>Directory containing the configuration files</description>
<param-name>confDir</param-name>
<param-value>/opt/rasdaman/etc/</param-value>
</context-param>
In Servlet Controller, I could get the Servlet Context
@Autowired
private ServletContext servletContext;
but when I tried to get the parameter, it returns null
servletContext.getInitParameter("confDir");
when I tried to get the real path to the servletContext
servletContext.getRealPath(File.separator);
it returns
"..../src/main/webapp/"
How can I get the configuration variable in web.xml?
Thanks