Quantcast
Channel: How to access static resources when mapping a global front controller servlet on /* - Stack Overflow
Viewing all articles
Browse latest Browse all 20

How to access static resources when mapping a global front controller servlet on /*

$
0
0

I've mapped the Spring MVC dispatcher as a global front controller servlet on /*.

<servlet>       <servlet-name>home</servlet-name>         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>     </servlet>  <servlet-mapping>       <servlet-name>home</servlet-name>         <url-pattern>/*</url-pattern>     </servlet-mapping>

However, this mapping stops the access to static files like CSS, JS, images etc which are all in the /res/ folder.

How can I access them anyway?


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images