How to handle static content in Spring MVC?

前端 未结 23 2827
春和景丽
春和景丽 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:11

    After encountering and going through the same decision making process described here, I decided to go with the ResourceServlet proposal which works out quite nicely.

    Note that you get more information on how to use webflow in your maven build process here: http://static.springsource.org/spring-webflow/docs/2.0.x/reference/html/ch01s05.html

    If you use the standard Maven central repository the artifact is (in opposite to the above referred springsource bundle):

    
        org.springframework.webflow
        spring-js
        2.0.9.RELEASE
     
    

提交回复
热议问题