I use tag <mvc:resources .../> to map static content. Everything works fine until I try to access a file with an unknown file extension, for example, some * .less file. When I try to access a file with this extension, I get 404 error. If I change the file extension, for example. * .css, it works great. If I don't use <mvc:resources .../> and map the default servlet to static content, there is no problem either.
Do you know how to fix this? Thanks in advance.
source share