Find web. XML in the project and add the configuration. Remember
<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 >
< Filter-Mapping >
< Filter-name > Characterencodingfilter
</ Filter-name >
< URL-Pattern > /*
</ URL-Pattern >
</ Filter-Mapping >
< Filter >
< Filter-name > Etagfilter
</ Filter-name >
< Filter-class > Org. springframework. Web. Filter. shallowetagheaderfilter
</ Filter-class >
</ Filter >
< Filter-Mapping >
< Filter-name > Etagfilter
</ Filter-name >
< Servlet-name > Spring MVC dispatcher Servlet
</ Servlet-name >
</ Filter-Mapping >