score:-1

@RequestMapping("/spring-web/{symbolicName:[a-z-]+}-{version:\\d\\.\\d\\.\\d}{extension:\\.[a-z]+}")
public void handle(@PathVariable String version, @PathVariable String extension) {
    // ...
}

reference https://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html

https://docs.spring.io/spring/docs/3.0.x/javadoc-api/org/springframework/util/AntPathMatcher.html

score:2

Solution proposed by OP:

@RequestMapping( //
       value  = {"/**/{extension:(?:\\w|\\W)+\\.(?:jpg|bmp|gif|jpeg|png|webp)$}"}, //
       method = RequestMethod.GET //
)

Related Query

More Query from same tag