I am trying to learn Spring in Detail so in my sample I having a DAO
@Repository
public class EmployeeDAOImpl implements EmployeeDAO {
    ...
}
it is working fine, but the same with @Component too working fine without any issue
@Component
public class EmployeeDAOImpl implements EmployeeDAO {
    ...
}
So why do I want to mark my
class with @Repository, and advantages there other than stereotype for persistence layer?
 
    