Since I found a problem in my project, looking for information, I noticed that people use the @Service annotation in different positions:
some on the service interface,
some on the ServiceImpl class.
The same with regards to the @Transactional annotation:
some used it over the methods implemented in the ServiceImpl class,
others over the methods in the Service interface,
others over the RestController methods,
still others in the Repository.
In short, rather than clearing my ideas, they confused me.
Can anyone explain the pros and cons of those choices and what is the best place to put them?