自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

转载 解决data too long for column 'name' at row 1

最先试一试最简单的测试方式就是先修改my.ini文件中的-default-character-set = gb2312或utf8,重启mysql再输入数据,如果不行,再考虑以下办法。 在程序中写了一段代码向数据库中插入数据,出现了data too long for column 'name' at row 1的问题。在google搜了一下解决方法,真是五花八门,也逐一试了一遍,终于

2017-04-04 17:02:40 20613

转载 使用Spring的@Scheduled实现定时任务

Spring配置文件xmlns加入xmlns:task="http://www.springframework.org/schema/task"xsi:schemaLocation中加入 http://www.springframework.org/schema/task http://www.springframework.org/schema/ta

2017-04-03 16:29:00 205

转载 使用Spring的@Scheduled实现定时任务

1. 在spring的xml配置文件中添加 xmlns:task="http://www.springframework.org/schema/task"  http://www.springframework.org/schema/task          http://www.springframework.org/schema/task/spring-task-3.0.xs

2017-04-03 16:23:10 248

原创 java判断file是否是image类型

if(file.getContentType().indexOf("image")!=-1){return JsonResultUtil.getErrorJson("不允许上传的文件格式,请上传gif,jpg,bmp格式文件。");}

2017-03-31 09:09:32 2299 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除