From ef07ee6cac956e7f22e32ee292dd469b3d33262b Mon Sep 17 00:00:00 2001 From: Haroon Khan Date: Tue, 12 Jul 2022 21:00:42 +0100 Subject: [PATCH] [JAVA-13264] Add missing classes --- .../constructordi/service/UserRepository.java | 7 +++++++ .../baeldung/constructordi/service/UserService.java | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 spring-di-2/src/main/java/com/baeldung/constructordi/service/UserRepository.java create mode 100644 spring-di-2/src/main/java/com/baeldung/constructordi/service/UserService.java 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; +}