O @Autowired é o mesmo que extends?
Vejamos um pequeno exemplo:
package com.dendetech.services;
import com.dendetech.entity.Participante; import com.dendetech.repositories.ParticipanteRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service;
@Service public class ParticipanteService {
@Autowired
private ParticipanteRepository participanteRepository;
/*
* Crud Operations
*/
<(Restante omitido). >