0

I recently studied springmvc and I confused about something,Can anyone give me some hints?

codes as follows:

<!-- why url pattern cannot be /* -->
 <url-pattern>/</url-pattern>

<!--and why this can be /* -->
 <url-pattern>/rest/*</url-pattern>
Cœur
  • 37,241
  • 25
  • 195
  • 267
kjdong
  • 1
  • 1
  • This means your application can have many endpoints .. which is not recommended. May be that's why its not allowed. – Atul Sharma Jan 12 '17 at 10:23
  • Possible duplicate of [Difference between / and /\* in servlet mapping url pattern](http://stackoverflow.com/questions/4140448/difference-between-and-in-servlet-mapping-url-pattern) – a better oliver Jan 12 '17 at 10:26

0 Answers0