What does do?

前端 未结 4 1293
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 14:48

I use filenames in my REST API (example: GET http://xxx/api/myImage.jpg) problem is @PathVariable dropped \".jpg\". this problems already asked few times in here and answer

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 15:28

    The mvc:annotationDriven tag essentially sets you your Spring context to allow for dispatching requests to Controllers.

    The tag will configure two beans DefaultAnnotationHandlerMapping and AnnotationMethodHandlerAdapter.

    You can find more information from the spring documents:

    http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html

提交回复
热议问题