| | |
| | | package testElectronJ; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.poi.hssf.usermodel.*; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import sun.misc.BASE64Decoder; |
| | | import testElectronJ.util.ServletUtils; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.OutputStream; |
| | | import java.io.UnsupportedEncodingException; |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("test") |
| | | public class TestController { |
| | |
| | | |
| | | @PostMapping("/readFboFile") |
| | | public Response readFboFile(@RequestParam String filePath){ |
| | | log.info("readFboFile开始"); |
| | | fboDataInf = new FboDataInf(); |
| | | //String filePath1 = java.net.URLDecoder.decode(filePath,"utf-8"); |
| | | fboDataInf.readFboFile(filePath); |
| | | log.info("读取结束"); |
| | | fileUrl = filePath; |
| | | return new Response().set(1,fboDataInf,filePath); |
| | | } |