1 2 3 4 5 6 7 8
package fr.plil.sio.web.mvc; import org.springframework.data.jpa.repository.JpaRepository; public interface RoleRepository extends JpaRepository<Role, Long> { Role findByName(String name); }