03 2014 档案

The method of type must override a superclass method解决方式(转)
摘要:今天做struts2上传文件的时候出现了这个问题:The method execute() of type UploadAction must override or implement a supertype method@Override 时出错误:解决办法是:一、因为你的Compiler 是jdk1.5,只要把它改为 1.6方法:1. window ->preferences... -> java -> Compiler2. Compiler compliance level : 6.0二、 把项目的JRE变成6.0的项目右键->build path->co 阅读全文

posted @ 2014-03-04 08:58 antyi 阅读(940) 评论(0) 推荐(0)

MySQL插入中文时出现ERROR 1406 (22001): Data too long for column 'name' at row 1 (转)
摘要:使用命令行方式登陆到MySQL服务器, 建立一个数据库,数据库编码设为UTF-8。此时,如果直接在命令行窗口使用insert语句插入中文,就遇到类似 ERROR 1406 (22001): Data too long for column 'name' at row 1 错误。乍一看,是字段长度引起的问题,但是实际是字符编码的问题。可是尝试以下解决方法: 1、在Linux中,使用终端方式登陆MySQL服务器,运行以下命令:set names utf8; 该命令将终端的字符编码设为了UTF-8。此后再插入数据库中的内容都会按照UTF-8的编码来处理。 注意:在Linux中,终端方 阅读全文

posted @ 2014-03-03 14:51 antyi 阅读(4474) 评论(0) 推荐(1)

导航