Which return type use in spring mvc in @RequestMapping method?

前端 未结 3 1217
一整个雨季
一整个雨季 2020-12-09 05:36

I know in spring mvc in @Controller class in @RequestMapping method I can return

  1. String
  2. Model
  3. ModelAndView

I don\'t understa

3条回答
  •  时光取名叫无心
    2020-12-09 06:12

    Everything is in the documentation: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-return-types

提交回复
热议问题