tisdag 19 november 2013

One golden line

Starting to explore the Spring v3 world just recently. Both at work and privately.

Quite fast I stumbled upon a problem that I couldn't figure out too fast. Ye, spring is kind of big.
I wanted to serve some static content. Instead of letting my apache do that, I added this line in the spring configuration:

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

Then it serves all my index.html and javascripts etc..

Inga kommentarer:

Skicka en kommentar