---
title: "get提交 存入DB中 Spring后台报错 "
author: "liangfeng366"
date: "2011-03-23T22:53:07Z"
tags: ["JSP", "MySQL", "Spring", "Web", "XML"]
categories: ["企业架构"]
slug: "get-db-spring"
draft: false
lastmod: "2011-03-23T22:53:07Z"
id: 973196
url: "https://liangfeng366.iteye.com/blog/973196"
---

jsp页面中 忘记加 \[color=red]charset=gbk\[/color] \[color=red]pageEncoding是jsp文件本身的编码\[/color] \[color=red]contentType的charset是指服务器发送给客户端时的内容编码\[/color] 在开发中设计的到的编码问题 1.数据库编码 像mysql在安装时就要设置默认的编码 2.Tomact 3.IED环境的编码 4.在web.xml中设置filter