Externalize web.xml filter init param value

434 views Asked by At

I have the below filter in web.xml:

<filter>
    <filter-name>test</filter-name>
    <filter-class>org.test.MyFilter</filter-class>
    <init-param>
        <param-name>loginUrl</param-name>
        <param-value>https://loginAppName</param-value>
    </init-param>
</filter>

Here loginUrl is different in different environments. So I want to externalize this param value. How to do this?

0

There are 0 answers