O'Reilly logo
  • shilong zhao thinks this is interesting:

So we can define a common URI template for these URLs, which might look like http://localhost:8080/webstore/products/{category}. Spring MVC can leverage this fact and make the template portion ({category}) of the URL a variable, which is called a path variable in the Spring MVC world.


Cover of Spring MVC Beginner’s Guide


why not use a parameter: webstore/products?category=xxx