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 Stereotypes
© 版权声明
THE END
暂无评论内容