From d99f181eeb3601c95e7455bcd2f2eed07bb79fed Mon Sep 17 00:00:00 2001 From: whyczh <hzjl@qq.com> Date: 星期四, 17 三月 2022 11:16:45 +0800 Subject: [PATCH] 更新readFboFile接口 --- src/main/java/testElectronJ/TestController.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/testElectronJ/TestController.java b/src/main/java/testElectronJ/TestController.java index 86272ea..7545aa8 100644 --- a/src/main/java/testElectronJ/TestController.java +++ b/src/main/java/testElectronJ/TestController.java @@ -1,10 +1,9 @@ package testElectronJ; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; + +import java.io.UnsupportedEncodingException; @RestController @RequestMapping("test") @@ -17,9 +16,10 @@ return new Response().set(1,"hello"); } - @GetMapping("/readFboFile") - public Response readFboFile(@RequestParam String filePath){ + @PostMapping("/readFboFile") + public Response readFboFile(@RequestParam String filePath) throws UnsupportedEncodingException { FboDataInf fboDataInf = new FboDataInf(); + //String filePath1 = java.net.URLDecoder.decode(filePath,"utf-8"); fboDataInf.readFboFile(filePath); return new Response().set(1,fboDataInf,filePath); } -- Gitblit v1.9.1