测试 用electron + springboot 构建桌面应用
whyczh
2022-03-17 dad0d1e26feeae8e7640f2dfb5761141c8aa3bc0
src/main/java/testElectronJ/TestController.java
@@ -1,17 +1,16 @@
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 javax.annotation.Resource;
@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    private FboDataInf fboDataInf;
    //@Autowired
    //private FboDataInf fboDataInf;
    @GetMapping("/hello")
    public Response hello(){
@@ -20,8 +19,9 @@
    @GetMapping("/readFboFile")
    public Response readFboFile(@RequestParam String filePath){
        FboDataInf fboDataInf = new FboDataInf();
        fboDataInf.readFboFile(filePath);
        return new Response().set(1,filePath);
        return new Response().set(1,fboDataInf,filePath);
    }
}