Explain the @Controller annotation.

Technology Community › Category: Spring › Explain the @Controller annotation.
VietMX Staff asked 5 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.