Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-8406

Create separate handler stereotype for RESTful web services

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The @Controller stereotype is tailored for a role within an MVC environment. As such, it makes certain assumptions that are not completely valid in a web services scenario (for instance, implicit view name resolution, and the ModelAndView concept).

      We could add another stereotype (eg. @Resource) that suits a web service scenario better. For instance, it would not (implicitly) use the ModelAndView paradigm, and default to having @Request- and @ResponseBody on all methods.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstoya05-aop Rossen Stoyanchev
                Reporter:
                arjen.poutsma Arjen Poutsma
                Last updater:
                Michael Osipov
              • Votes:
                12 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 51 weeks, 6 days ago