0

I came up with the following issue. I couldn't open neither of my web-pages after I had added a resource mapping to the spring-config:

<mvc:resources location="/resources/" mapping="/resources/**"/>

But, after I added

<mvc:annotation-driven />

it got work fine. Why? Couldn't someone explain what the tag does?

user3663882
  • 6,957
  • 10
  • 51
  • 92
  • This question has already been answered numerous times, search stack overflow and you'll find several posts about what it does. Also the Spring documentation explains it as well. – cshannon Jan 04 '15 at 16:10
  • possible duplicate of [What does do?](http://stackoverflow.com/questions/8162459/what-does-mvcannotation-driven-do) – cshannon Jan 04 '15 at 16:12
  • @ChristopherShannnon In the topic you provided said that the annotation allowed to dispatch requests. But, the requests could be dispatched without it. I needed to add this annotation only when I configure resources. – user3663882 Jan 05 '15 at 03:43

0 Answers0