Spring 4 MVC的post提交form时中文乱码
假设你发现Spring 4 MVC的Post请请求乱码,请加入accept-charset的标签为utf-8就能解决。例如以下:
<form name="user" action="add.html" method="post" accept-charset="utf-8"> Firstname: <input type="text" name="firstname"> <br> Lastname: <input type="text" name="lastname"> <br> <input type="submit" value=" Save "> </form>