1. web.xml中配置了CharacterEncodingFilter,配置这个是拦截所有的资源并设置好编号格式。
encoding设置成utf-8就相当于request.setCharacterEncoding("UTF-8");
foreEncoding设置成true就相当于response.setCharacterEncoding("UTF-8");
CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true CharacterEncodingFilter /*
Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号