How to create link pointing to Spring controller action that returns void
问题 I am using spring mvc, hateoas. I have a controller action that looks like @RequestMapping(value = "/images/{userId}/{publicUrl}/{fileName:.+}", method = RequestMethod.GET) public void image(@PathVariable Integer userId, @PathVariable String publicUrl, @PathVariable String fileName, HttpServletRequest request, HttpServletResponse response) throws Exception { try(HellodoxAws aws = haws;){ ..... ..... response.setContentType(image.getObjectMetadata().getContentType()); response.setHeader("ETag"