|
@@ -1,5 +1,6 @@
|
|
|
package com.gis.web.controller;
|
|
|
|
|
|
+import cn.hutool.core.img.Img;
|
|
|
import cn.hutool.crypto.SecureUtil;
|
|
|
import cn.hutool.crypto.asymmetric.Sign;
|
|
|
import cn.hutool.crypto.asymmetric.SignAlgorithm;
|
|
@@ -14,11 +15,9 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.junit.Test;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -47,4 +46,16 @@ public class ApiController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// @ApiOperation("生成缩略图")
|
|
|
+// @PostMapping("cov")
|
|
|
+// public Result cov() {
|
|
|
+// String inPath = "/root/user/owen_test/jar/100m.jpg";
|
|
|
+// String outPath = "/root/user/owen_test/jar/100m_t.jpg";
|
|
|
+// log.info("start cov");
|
|
|
+// Img.from(new File(inPath)).scale(300, 150).write(new File(outPath));
|
|
|
+// log.info("end cov");
|
|
|
+// return Result.success();
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
}
|