I start working with Spring and have some confusions about its conventions.
- Is it fine to put Repositories in Controller?
- In a Service class, If I want to reuse code could I inject other
Services
and other Reposities? - is it the best practice to name
Service
AndRepository
class is based onEntity
name i.e: User ->UserRepository
->UserService
?