2011年10月1日 星期六

[Spring] mvc annotation

* mvc:annotation-driven
  • registers a DefaultAnnotationHandlerMapping and AnnotationMethodHandlerAdapter.
  • @NumberFormat and @DateTimeFormat annotations.
  • JSR-303 Bean Validation API support will be detected on classpath and enabled automatically.

* mvc:default-servlet-handler
  • allows for mapping the DispatcherServlet to "/" (thus overriding the mapping of the container's default Servlet),
  • while still allowing static resource requests to be handled by the container's default Servlet.


沒有留言:

張貼留言