jsp页面 中文传值 request接收乱码导入数据库乱码

版权声明:LemonSnm https://blog.csdn.net/LemonSnm/article/details/86586465

jsp:

  <input type="text" name="username" class="form-control" id="input_username" value="${user_name}">

controller:

  user.setUsername(new String(request.getParameter("username").getBytes("iso-8859-1"), "utf-8"));

猜你喜欢

转载自blog.csdn.net/LemonSnm/article/details/86586465
今日推荐