I'm struggling with understanding spring framework. I use to work with Java EE.
When I write interfaces and implementations, Can I use annotation on interfaces?
@Repository // Can I do this?
interface MyRepository {
}
@Repository // Can I omit this?
class MyRepositoryImpl implements MyRepository {
}
What about @Service
? Is it same?