乱码不一定是tomcat导致的设置tomcat为utf-8http://blog.csdn.net/hongqishi/article/details/7428380设置ide中的编码格式为utf-8设置数据库为utf-8如果用了框架spring啥的,配置utf-8解码