package com.royalrangers.security.repository;

import com.royalrangers.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
    User findByEmail(String email);
    //List<User> findAll();
}

@@ -193,31 +193,8 @@
 y;%0A%0A
-import java.util.List;%0A
 %0A@Re
@@ -270,16 +270,20 @@
 Long%3E %7B%0A
+   %0A
     User
@@ -356,34 +356,9 @@
 l);%0A
+
   
-  //List%3CUser%3E findAll();
 %0A%7D%0A

Update UserRepository.java