Announcement Announcement Module
Collapse
No announcement yet.
Problem with mvc:resources Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with mvc:resources

    I am using mvc:resources inside the spring mvc context xml file in order to use static resources, as follows:

    Code:
    <mvc:resources mapping="/jsp/**" location="/jsp/"/>
    It appears to be recognised by Spring, as the tomcat log shows this:
    Code:
    Mapped URL path [/MY-APP/jsp/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
    However, what happens is that the request mapping declared through controller annotations no longer work, in fact it appears from the log file that they are no longer being mapped.
    What is the correct way to use mvc:resources?
Working...
X