This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring MVC: How to remove the word 'resources' from paths  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a resources folder in my WebContent folder that contains css, js, and images... Then i declare mvc resource mapping to locate all the resources file... but when i tried to call/access the file in my jsp, why is that i need to include the word resources?... do you know how can i remove it but still able to access my resources?

project structure



above code works perfectly, but i want to exclude the word resources in path.. without writing one by one all the inside resources folder (like sample below)

what i need is something like this... but still declaring one line mvc resource mapping
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!