DEV Community

loading...

Spring Stereotypes

mhddurrah profile image MOHAMD DORRA ・1 min read

Spring stereotype annotations are aliases for @Component annotation, like Service, Repository and Controller.
Hence you can define your own stereotype and customize it like the Api component here and spring container will take the rest on initializing the suitable component.

Spring

Discussion

pic
Editor guide