What Is Spring Stereotype Annotations?
What Is Spring Stereotype Annotations? @Controller: Which is used to create Spring beans at the controller layer. … The stereotype annotations in spring are @Component, @Service, @Repository and @Controller. What are stereotype annotations in Java? Stereotype annotations denote roles of types or methods at conceptual level. Stereotype annotations are @Component , @Service , @Repository and