Skip to main content
3 of 3
added 38 characters in body
janos
  • 111.7k
  • 15
  • 152
  • 391

A few minor points on top of Vogel's:

  • It seems PostController postController can be final
  • Instead of using request.getRequestURI() (the entire URL) and Matcher.find(), you could use request.getContextPath() (just the path part) and Matcher.matches(). The pattern matching logic would be slightly simpler that way, and you could drop the $ from the end of the patterns
janos
  • 111.7k
  • 15
  • 152
  • 391