I am using router function. I have a path like this. This product id will be a number always.
/{productId}
I am tryting to use these – none of them works.
RequestPredicates.path("\d+")
RequestPredicates.path("[0-9]+")
However /250
is works fine with RequestPredicates.path("???")