Skip to content

Instantly share code, notes, and snippets.

@AnanthaRajuC
Created April 16, 2022 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnanthaRajuC/2c33925e1e3a5b048851875aac516963 to your computer and use it in GitHub Desktop.
Save AnanthaRajuC/2c33925e1e3a5b048851875aac516963 to your computer and use it in GitHub Desktop.
Repository for Spring Data REST
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