配置:
spring.mvc.static-path-pattern: /static/** spring.resources.static-locations=file:D:/dev/java/ltdemo/upload/
上传:
@PostMapping(value = "/a") public String a(@RequestParam(required=false) MultipartFile material) throws Exception{}
配置:
spring.mvc.static-path-pattern: /static/** spring.resources.static-locations=file:D:/dev/java/ltdemo/upload/
上传:
@PostMapping(value = "/a") public String a(@RequestParam(required=false) MultipartFile material) throws Exception{}