Created
April 16, 2022 13:48
-
-
Save AnanthaRajuC/2c33925e1e3a5b048851875aac516963 to your computer and use it in GitHub Desktop.
Repository for Spring Data REST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.anantharajuc.springdatarest.repository; | |
import io.github.anantharajuc.springdatarest.model.Person; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
import org.springframework.data.rest.core.annotation.RepositoryRestResource; | |
@RepositoryRestResource(path="persons") | |
public interface PersonRepository extends JpaRepository<Person, Long> { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment