Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.domain1
- @Repository //expect that Spring will generate a bean
- public interface PersonRepository extends Repository<Person, UUID> {}
- package com.domain2
- //just an interface
- public interface PersonRepository extends Repository<Person, UUID> {}
- //implementation
- @Component
- public PersonRepositoryImpl implements PersonRepository {}
- public class MyClass {
- @Autowired
- com.domain1.PersonRepository personRepository;
- }
Add Comment
Please, Sign In to add comment