diff --git a/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserRepository.java b/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserRepository.java new file mode 100644 index 0000000000..aec9e51af9 --- /dev/null +++ b/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserRepository.java @@ -0,0 +1,7 @@ +package com.baeldung.constructordi.service; + +import org.springframework.stereotype.Repository; + +@Repository +public class UserRepository { +} diff --git a/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserService.java b/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserService.java new file mode 100644 index 0000000000..7762ff324c --- /dev/null +++ b/spring-di-2/src/main/java/com/baeldung/constructordi/service/UserService.java @@ -0,0 +1,11 @@ +package com.baeldung.constructordi.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class UserService { + + @Autowired + private UserRepository userRepository; +}