Boa noite galera.
Estou fazendo um projeto em SpringBoot e sou meio iniciante na tecnologia já dei uma boa pesquisada e as respostas que encontro para o meu problema parecem não funcionar. Enfim aqui vai minha estrutura do projeto:
Quando vou rodar o projeto recebo o erro:
Field lowcreditRepository in com.sippulse.email.lowcredit.Service.LowCreditServiceImpl required a bean >of type ‘com.sippulse.email.lowcredit.Repository.SipPulseEmailLowCreditRepository’ that could not be >found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type >‘com.sippulse.email.lowcredit.Repository.SipPulseEmailLowCreditRepository’ in your configuration.
Já tentei colocar ComponentsScan com o pacote base do projeto mas não funcionou.
@Service
@EnableScheduling
public class LowCreditServiceImpl implements LowCreditService {
@Autowired
private SipPulseEmailLowCreditRepository lowcreditRepository;
...
@Repository
public interface SipPulseEmailLowCreditRepository extends JpaRepository<Subscriber, Long> {
...
Eu não tenho o bean configurado no xml uma vez que pelo que eu li é um modelo mais antigo e por anotações deveria funcionar.
Desde já agradeço, caso seja necessaria mais alguma informação por favor me informem.
