This commit is contained in:
Yuriy Dvorzhetskiy
2021-10-01 21:57:49 +03:00
parent d158c43369
commit eb25b9d03e
3 changed files with 13 additions and 8 deletions
@@ -1,8 +1,6 @@
package ru.otus.spring.microservice.repostory;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;
import ru.otus.spring.microservice.domain.Person;
@@ -10,7 +8,7 @@ import ru.otus.spring.microservice.domain.Person;
import java.util.List;
@RepositoryRestResource(path = "person")
public interface PersonRepository extends PagingAndSortingRepository<Person, Integer> {
public interface PersonRepository extends JpaRepository<Person, Integer> {
List<Person> findAll();
@@ -1,8 +1,6 @@
package ru.otus.spring.microservice.repostory;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;
import ru.otus.spring.microservice.domain.Person;
@@ -10,7 +8,7 @@ import ru.otus.spring.microservice.domain.Person;
import java.util.List;
@RepositoryRestResource(path = "person")
public interface PersonRepository extends PagingAndSortingRepository<Person, Integer> {
public interface PersonRepository extends JpaRepository<Person, Integer> {
List<Person> findAll();
@@ -9,3 +9,12 @@ management:
health:
defaults:
enabled: true
info:
git:
mode: full
info:
version: @project.version@
author: dkogan
descriptiion: THis is SPring Bot example