Solution one:
Solution two :( once and for all type)
Modify the tomcat server.xml file
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />
Add the last portion of the yellow line highlighted
Schematic:
Pictures from: https://www.jb51.net/article/98287.htm