I have a spring project which has a lot of get methods. I need to encode the URL parameters. it's an ongoing project so I can't make many changes. I am using tomcat 8. I have already tried the following:
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
And other changes, but none of them work.
Is there any effective and simple way to make it possible?