我配置了spring编码过滤器,也配置了tomcat编码
方法:
@RequestMapping(value = "/", method = RequestMethod.GET, produces="text/html;charset=UTF-8")
Java code
public String home(Locale locale, Model model) {
model.addAttribute("a","中文测试");
return home;
}
jsp:
Home
${a}
这样就乱码了,求帮助