From 471b033688cf85f503081e7401163bcc5fa45351 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 25 Mar 2024 18:39:40 +0800
Subject: [PATCH] 图斑

---
 src/main/java/com/dji/sample/patches/controller/DemoController.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/dji/sample/patches/controller/DemoController.java b/src/main/java/com/dji/sample/patches/controller/DemoController.java
index 6d82d0f..12a4845 100644
--- a/src/main/java/com/dji/sample/patches/controller/DemoController.java
+++ b/src/main/java/com/dji/sample/patches/controller/DemoController.java
@@ -2,8 +2,8 @@
 
 import com.dji.sample.patches.service.impl.DemoServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
 
 
 import java.io.File;
@@ -11,11 +11,14 @@
 import java.io.IOException;
 
 @RestController
+@RequestMapping("${url.patches.prefix}${url.patches.version}")
 public class DemoController {
     @Autowired
     private  DemoServiceImpl demoServiceImpl;
-    @GetMapping("/getGeo")
-    public void getGeo (File file) throws IOException {
+    @PostMapping("/getGeo")
+    public void getGeo (@RequestParam("file") MultipartFile file) throws IOException {
         demoServiceImpl.insertGeo(file);
     }
+
+
 }
\ No newline at end of file

--
Gitblit v1.9.3