Announcement Announcement Module
Collapse
No announcement yet.
Replacing mvc:default-servlet-handler by mvc:resources mapping /** to / Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Replacing mvc:default-servlet-handler by mvc:resources mapping /** to /

    Hi,

    can <mvc:default-servlet-handler/> be replaced by <mvc:resources mapping="/**" location="/"/> ?

    (the latter has the advantage of controlling the caching).

    Edit: I think the answer is "yes". But are there any drawbacks when replacing it? I just did some debugging: <mvc:default-servlet-handler/> handles requests with DefaultServletHttpRequestHandler while <mvc:resources .../> uses ResourceHttpRequestHandler...

    Cheers
    Burkhard
    Last edited by dhukas; May 7th, 2012, 09:02 AM.
Working...
X