After deployment on the server, it is found that many places report 400 error, which has a unified feature of transmitting Chinese to the back-end interface
Solution:
1. configure the Tomcat server transmission encoding format specification:
Edit the tomcat/conf/server.xml file and add the encoding attribute: URIEncoding=”UTF-8″ to the Connector tag
2. Edit the tocmat/bin/catalina.bat file and add the following attribute: set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8
3. the most important step is to restart through shutdown and startup under the bin directory of Tomcat
Read More:
- JSON parse error: invalid UTF-8 solution series [How to Solve]
- [Solved] org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot
- [Solved] JSON parse error: Cannot construct instance of
- [Solved] MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
- [Solved] HttpMessageNotReadableException: JSON parse error: Unrecognized field “xxxx“
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseria
- [Solved] JSON parse error: Cannot deserialize instance of `java.util.ArrayList<..> out of START_OBJECT token;
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- [Solved] SpringBoot Date Convert Error: JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime`
- [Solved] Openfeign Error: error: Failed to parse Date value…
- How to Remove “Devtools failed to parse sourcemap” Warning
- RSA Decryption Error: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
- [Solved] Feign Call Port Error: HttpMessageNotReadableException:JSON parse error:Illegal character ((CTRL-CHAR, code 31)
- [Solved] Tomcat Error: org.apache.tomcat.util.digester.Digester.fatalError Parse fatal error at line [40] column [36]
- [Solved] springsecurity custom exceptions: Error: Parse Error: Response overflow
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.
- OpenFeign Error: {“code“:1,“msg“:“JSON parse error: Illegal character ((CTRL-CHAR, code 31))
- Byte 1 of UTF-8 sequence of error creating document instance. And bytes is invalid
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- Fatal error compiling: invalid target release: 1.8 [How to Solve]