| | |
| | | @Value("${static.resource.path}") |
| | | private String resourcePath; |
| | | |
| | | @ApiOperation(value = "文件上传服务器", notes = "文件上传服务器") |
| | | @GetMapping(value = "/fileUploadEsc") |
| | | public Map<String,Object> fileUploadEsc(MultipartFile file) throws IOException { |
| | | @ControllerEndpoint(operation = "文件上传服务器", exceptionMessage = "上传失败") |
| | | @PostMapping(value = "/fileUploadEsc") |
| | | public Map<String,Object> fileUploadEsc(@RequestBody @Validated MultipartFile file) throws IOException { |
| | | if (file == null) { |
| | | throw new FebsException("上传文件不能为空"); |
| | | } |