System.out.println(this.fileName);
System.out.println(this.contentType);
System.out.println(this.caption);
System.out.println(imageService);
//实例化
Image i = new Image();
i.setId(fileName.hashCode());
i.setFileName(fileName);
i.setCaption(caption);
try {
i.setImage(FileUtils.readFileToByteArray(upload));
} catch (IOException e) {
e.printStackTrace();
}
// 保存数据
this.serializable = imageService.save(i);