Spring MVC; avoiding file extension in url?

前端 未结 6 1638
臣服心动
臣服心动 2020-12-31 20:46

I just started with Spring Web MVC. I\'m trying to avoid file extenstions in the url. How can i do this? (I\'m using Spring 2.5.x)

Bean:

<         


        
6条回答
  •  温柔的废话
    2020-12-31 21:13

    
        spring-mvc
        
            org.springframework.web.servlet.DispatcherServlet
        
        1
    
    
    
        spring-mvc
        /*
    
    

    Then you need to register your urls to be handled by a particular controller. See the following

    http://static.springsource.org/spring/docs/2.0.x/reference/mvc.html

提交回复
热议问题