Explain the @Controller annotation.

Technology CommunityCategory: SpringExplain the @Controller annotation.
VietMX Staff asked 3 years ago

The @Controller annotation indicates that a particular class serves the role of a controller. Spring does not require you to extend any controller base class or reference the Servlet API.