Spring Data REST(SDR)是一个Spring Data项目,旨在使Spring Data存储库作为REST服务公开。 SDR在内部使用Spring HATEOAS来创建HAL响应。
考虑到给定类的投影,是有没有办法告诉Spring包含在类型投影注释中定义的类的所有默认属性?鉴于2实体类@ ...
我具有在我的库一个下列的函数:@RestResource(路径= “过滤器”,为rel = “过滤器”)@Query( “选择T” + “FROM旅行T” + “WHERE” +“(:从为空或...
@RepositoryEventHandler方法没有为@Modifying方法调用
我有一个事件处理程序类,如下所示:@Component @RepositoryEventHandler(DonationOffer.class)public class DonationOfferEventHandler {@Autowired DonationOfferNotificationService ...
Spring Data REST(使用Spring Boot) - Hibernate验证本地化
我目前正在评估Spring Data REST。我从这个简单的例子开始:链接它开箱即用。但现在,在下一步中,我想尝试一些验证,看看框架是如何...
使用Spring Data Rest手动将JSON转换为Object
假设我有以下实体:public class Employee {private String name;私人公司公司}我有一个字符串,内容如下:{“name”:“Joe”,“company”:“http:/ ...
使用ConversionFailedException在PUT调用上自定义实体查找失败
我有一个与这个问题非常相似的问题,但并不完全相同。我想使用基于字符串的外部id,因此请在文档中设置自定义EntityLookup配置。这适用于GET,...
使用spring-data-rest处理@CreatedBy,@ ManagementAt,@ ChangedBy,@ ChangeEt和@Version字段
我无法确保使用@CreatedBy,@ ManagementAt,@ ChangedBy,@ ChangedAtand @ Version注释的字段中的数据使用了spring-data-rest`。它以意想不到的方式表现。打电话给PUT ......
何时使用@RestController vs @RepositoryRestResource
我一直在研究如何使用Spring和REST的各种示例。我们的最终目标是Spring HATEOAS / HAL设置我在Spring Via @中看到了两种不同的渲染REST的方法......
[在多租户系统上将Spring Data Rest与EclipseLink结合使用时的QueryException
我正在使用Spring数据仓库和EclipseLink创建一个多租户单表应用程序。但是我无法创建可以调用自定义QueryParameters的存储库。我的Kid.class @ ...
如何在spring-boot数据休息时在POST json中传递@EmbeddedId
我使用Spring Boot Data REST构建了一个REST API。我正在使用embeddedId并且还实现了BackendIdConverter。下面是我的Embeddable类@Embeddable公共类EmployeeIdentity ...
我在一个项目中工作,我们使用Spring Data Rest with HATEOAS,Spring JPA和Hibernate,目前我们遇到了一个奇怪的问题,我们无法修复:Angular前端......
如何在Spring Data REST中自动扩展具有给定类型的所有关系?
我的用例是本地化:许多实体具有多语言属性,这些属性被映射为MultilingualString类的关系。有什么方法可以配置我的Spring Data REST API,所以......
Swagger没有检测到使用Spring Data Rest构建的Api
我正在使用swagger为我的API生成文档的Spring启动应用程序,我使用Spring数据休息生成Api但是当我运行应用程序时,我得到了一个招摇信息:没有操作...
查询单个资源时,Spring Data Rest输出将列对象作为JSON字段连接
我有公寓实体:@Entity公共类公寓扩展AbstractEntity {private String name; @OneToOne(fetch = FetchType.EAGER)@JoinColumn(nullable = false)@RestResource(exported = false)...
我正在使用Spring-data-rest,但这可能是一般性问题。如果我正在创建REST服务并且经过身份验证的用户进行了REST查询,该查询获取了一些未经授权的数据,那么......
Spring Data:使用另一个实体的布尔字段创建实体(和DB条目)
我使用Spring Boot,Spring Data和JPA Rest Repositories和MySQL作为数据库,我想在创建实体时做几件事。假设我有一个MainChecker实体,每个实体......
Spring Data Rest Association GET Override
好的,这个问题的答案可能是在这里或这里的春季文档,但我一直无法找到它。我正在尝试实现软删除。到目前为止,这一切都很好,花花公子。 ...
Spring Boot @WebIntegrationTest和TestRestTemplate - 是否可以回滚测试事务?
我有一个带有Spring Data Rest的Spring Boot应用程序,我在集成测试中使用@WebIntegrationTest和TestRestTemplate。测试的基类看起来像这样:@ ...
如何在@HandleBeforeSave事件中获取旧实体值以确定属性是否已更改?
我正试图在@HandleBeforeSave事件中获取旧实体。 @Component @RepositoryEventHandler(Customer.class)public class CustomerEventHandler {private CustomerRepository ...
我有一个REST(spring-hateoas)服务器,我想用JUnit测试来测试。因此我使用自动注入的TestRestTemplate。但是,我现在如何为此预先添加更多配置...