Greetings ,
Is there any way to get values from web.xml context-param into Spring context?
For example I define the value in web.xml as :
&l
Yes - ServletContextPropertyPlaceholderConfigurer
This article explains the details. In short, you need:
<bean class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer">
</bean>
and then use the properties like:
<bean ...>
<property name="compassIndex" value="${compass-index}" />
</bean>
or with @Value("${compass-index}")