直接上代码,controller层代码: @RestController @RequestMapping("/common") public class CommonController { private static final Logger log = LoggerFactory.getLogger(CommonController.class); @Resource private ServerConfig serverConfig; private static final String FILE_DELIMETER = ","; /** * 通用上传请求(单个) */ @ApiOperation(value= "通用本地上传请求(单个)") @PostMapping("/upload") @ResponseBody public CommonResponse uploadFile(@RequestPart(name = "file") MultipartFile file) { try { // 上传文件路径 String filePath =...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with return
Contact return, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack