我感觉这样还是挺好的,从搭框架开始,这一套流程下来学的比较透彻,如果你对框架很熟悉,直接听后面的课程就行了。
2016-12-07
感觉那个多条水印x y的差值不应该直接写到程序里。而是写个变量。
在那个接口里
public static final int XMOVE=150;
public static final int YMOVE=200;
在那个接口里
public static final int XMOVE=150;
public static final int YMOVE=200;
2016-09-27
(看得有点快系列)老师是不是少了水印图片生成方法的调用
MarkService markService = new MarkServiceImpl();
uploadService.uploadImage(image, imageFileName, uploadPath, realUploadPath);
picInfo.setImageURL(
markService.watermark(image, imageFileName, uploadPath, realUploadPath));
MarkService markService = new MarkServiceImpl();
uploadService.uploadImage(image, imageFileName, uploadPath, realUploadPath);
picInfo.setImageURL(
markService.watermark(image, imageFileName, uploadPath, realUploadPath));
2016-09-26
看的有点快,感觉老师在创建文件的时候没有讲述文件创建所可能碰到的问题。FileOutputStream本身是可以创建新文件的,但是必须保证之前的文件路径是存在的,如果遇到文件路径问题,则
boolean bool = new File(realUploadPath).mkdirs();
System.out.println(bool);
os = new FileOutputStream(realUploadPath + "/" + imageFileName);
啦啦啦啦啦~
boolean bool = new File(realUploadPath).mkdirs();
System.out.println(bool);
os = new FileOutputStream(realUploadPath + "/" + imageFileName);
啦啦啦啦啦~
2016-09-26