How to handle static content in Spring MVC?

前端 未结 23 2833
春和景丽
春和景丽 2020-11-22 03:28

I am developing a webapp using Spring MVC 3 and have the DispatcherServlet catching all requests to \'/\' like so (web.xml):

  
          


        
23条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 04:07

    This problem is solved in spring 3.0.4.RELEASE where you can use configuration element in your spring dispatcher configuration file.

    Check Spring Documentation

提交回复
热议问题