Check out example codes for "remove jsessionid from url spring". It will help you in understanding the concepts better.

Code Example 1

<filter>    
<filter-name>URLSessionFilter</filter-name>
<filter-class>my.package.web.filter.URLSessionFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>URLSessionFilter</filter-name>    
<url-pattern>/*</url-pattern>
</filter-mapping>

Learn ReactJs, React Native from akashmittal.com