I have a question about the best way to implement some services with Spring Rest , but I could not find material for this case:
Let's say I have a service for making a release ( LancamentoService ). This service launches, updates the balance and charges the fee. So, I've injected the repositories in Repository , BalanceRepository and RateRepository .
In addition to this service, it would also have services to make loot, transfer, etc., and all these would need to make a launch, plus other things. To do this I'm injecting the LancamentoService into each of these sevices.
However, even though I call a service in SaqueService , for example, that I would not need to do postings, L ancamentoService is "loaded" along with all its repositories.
Is that so? If anyone has a better practice or some reference material, thank you very much.