Search code examples
springspring-bootrest

What does .+ mean in Path Variable?


in a Spring Boot REST API Project I came across a Route which was somewhat like this:

@DeleteMapping("api/{variable:.+}")

What does the .+ stand for?


Solution

  • It stands for: one or more characters.

    See https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html for reference.