tomcat打war包后中文请求报错

Blade 未结 0 196
845028863
845028863 剑童 2024-06-06 14:19

按照帖子 https://sns.bladex.cn/q-6813.html 进行配置后,发送http请求包含中文参数时报错如下:

06-Jun-2024 14:19:20.578 信息 [main] org.apache.catalina.startup.Catalina.start [63365]毫秒后服务器启动

2024-06-06 14:19:45.429  INFO 16456 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'

2024-06-06 14:19:45.433  INFO 16456 --- [nio-8090-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 3 ms

2024-06-06 14:19:45.578 ERROR 16456 --- [nio-8090-exec-1] o.s.c.log.error.RestExceptionTranslator  : 娑堟伅涓嶈兘璇诲彇:JSON parse error: Invalid UTF-8 middle byte 0xe8; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 middle byte 0xe8


回答
  • 消灭零回复
提交回复