Giriş
Maven'da şöyle yaparız.
Şöyle yaparız.
"@RepositoryRestResource.name + projection= + @Projection.name" yani şöyle
Şöyle yaparız
Maven'da şöyle yaparız.
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>Şöyle yaparız.
@Projection(name = "userProjection", types = { User.class })
public interface UserProjection {
  //Getters
}"@RepositoryRestResource.name + projection= + @Projection.name" yani şöyle
http://localhost:8080/rest/users/1?projection=userProjectionŞöyle yaparız
@Projection(name = "foo", types = YourDomainClass.class)
interface Inlined {
  // list all other properties
  Sector getSector();
} 
Hiç yorum yok:
Yorum Gönder