Using spring-web, I am mapping a method to receive a request containing dots "." on the path:
@RequestMapping(value = "download/{id:.+}", method = RequestMethod.GET, produces = "application/xls")
public String download(@PathVariable(value = "id") String id) { ... }
For example, /download/file.xls
should be a valid address. But when I try to access that address, Spring returns Could not find acceptable representation
as if it was trying to find a resource named file.xls
.
Spring shouldn't execute download
method rather than try to find a resource named as the path variable?
Obs.: my application is a spring-boot application.