测试 用electron + springboot 构建桌面应用
whyczh
2022-03-17 d99f181eeb3601c95e7455bcd2f2eed07bb79fed
更新readFboFile接口
1个文件已修改
12 ■■■■ 已修改文件
src/main/java/testElectronJ/TestController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);
    }