摘要: /** * 指定大小进行缩放 * * @throws IOException */ private void test1() throws IOException { /* * size(width,height) 若图片横比200小,高比300小,不变 * 若图片横比200小,高比300大,高缩小 阅读全文
posted @ 2020-04-22 16:11 帖子搬运工 阅读(631) 评论(0) 推荐(0)
摘要: public String RARFile(MultipartFile imageFile, HttpServletRequest request, HttpServletResponse response) throws IOException {// Thumbnails.of((File) i 阅读全文
posted @ 2020-04-22 10:21 帖子搬运工 阅读(313) 评论(0) 推荐(0)
摘要: public Boolean downloadFile(String id, String name, HttpServletRequest request, HttpServletResponse response){ //根据ID查询文件是否存在 FileUpload upload = grid 阅读全文
posted @ 2020-04-22 09:31 帖子搬运工 阅读(654) 评论(0) 推荐(0)
摘要: parseInt(值).toLocaleString(); parseFloat(值).toLocaleString(); parseDouble(值).toLocaleString();parseFloat((值.toFixed(n)): 利用toFixed() 方法,该方法可把值四舍五入为指定小 阅读全文
posted @ 2020-04-22 09:21 帖子搬运工 阅读(2009) 评论(0) 推荐(0)
摘要: /** * 上传文件至GridFs * @param gridFsTemplate * @param file */ 需要自行导入jar包 public static ObjectId uploadFile(GridFsTemplate gridFsTemplate, MultipartFile f 阅读全文
posted @ 2020-04-22 09:19 帖子搬运工 阅读(568) 评论(0) 推荐(0)