diff --git a/src/main/java/stirling/software/SPDF/repository/AuthorityRepository.java b/src/main/java/stirling/software/SPDF/repository/AuthorityRepository.java index 41c251e1310..af1c4b5ce3b 100644 --- a/src/main/java/stirling/software/SPDF/repository/AuthorityRepository.java +++ b/src/main/java/stirling/software/SPDF/repository/AuthorityRepository.java @@ -6,6 +6,7 @@ import stirling.software.SPDF.model.Authority; +@Repository public interface AuthorityRepository extends JpaRepository { // Set findByUsername(String username); Set findByUser_Username(String username); diff --git a/src/main/java/stirling/software/SPDF/repository/PersistentLoginRepository.java b/src/main/java/stirling/software/SPDF/repository/PersistentLoginRepository.java index 31841a5771e..2bf53b29f40 100644 --- a/src/main/java/stirling/software/SPDF/repository/PersistentLoginRepository.java +++ b/src/main/java/stirling/software/SPDF/repository/PersistentLoginRepository.java @@ -1,7 +1,9 @@ package stirling.software.SPDF.repository; import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.web.bind.annotation.ResponseBody; import stirling.software.SPDF.model.PersistentLogin; +@ResponseBody public interface PersistentLoginRepository extends JpaRepository {} diff --git a/src/main/java/stirling/software/SPDF/repository/UserRepository.java b/src/main/java/stirling/software/SPDF/repository/UserRepository.java index ad65f27dd56..cf0c80d176d 100644 --- a/src/main/java/stirling/software/SPDF/repository/UserRepository.java +++ b/src/main/java/stirling/software/SPDF/repository/UserRepository.java @@ -3,10 +3,12 @@ import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Repository; import stirling.software.SPDF.model.User; -public interface UserRepository extends JpaRepository { +@Repository +public interface UserRepository extends JpaRepository { Optional findByUsernameIgnoreCase(String username); Optional findByUsername(String username);