Can @Component, @Repository and @Service annotations be used interchangeably in Spring or do they provide any particular functionality besides acting as a notation device?>
@Component @Controller @Repository @Service @RestController
These are all StereoType annotations.this are usefull for the making our classes as spring beans in ioc container,