Spring mvc Controller Chinese parameter garbled

question:

In js, the parameters with Chinese are submitted by GET method, and the background Controller layer receives garbled characters.

 

Solution:

Change the request method from GET to POST.

 

Reference: https://www.cnblogs.com/esther-qing/p/6425590.html

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326180073&siteId=291194637