mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
fix
This commit is contained in:
+2
-4
@@ -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();
|
||||
|
||||
|
||||
+2
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user