I want to exclude one url from filter mapping, is it possible to do that in web.xml?
<filter>
<filter-name>basicAuthenticationFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>basicAuthenticationFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
The url I want to exclude is something like /health
.
If that is not possible, is there any example in java code about how we can do it?