Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'attachmentId' in value "/download/file/${attachmentId}"
原因: 在定义 @GetMapping("/download/file/${id}") 的时候,路径变量用
{}不用
${}`的形式,那是Shell的语法,弄串了
@GetMapping("/download/file/${id}")
public ResponseEntity<byte[]> downloadFle(@PathVariable String id) {}