Spring Data REST(SDR)是一个Spring Data项目,旨在使Spring Data存储库作为REST服务公开。 SDR在内部使用Spring HATEOAS来创建HAL响应。
找不到类型类java.lang.String的PersistentEntity
我正在尝试进行简单的查询。我创建了一个实现customizePlaceRepository的customizePlaceRepositoryImpl类。问题是当我尝试在浏览器中调用端点时...
我有一个使用Spring Data JPA的项目,它使用来自满地址表的数据。这张桌子的一个栏目是城市。我想得到一个明确的城市列表......
我想使用Spring Rest接口公开所有ID。我知道默认情况下,这样的ID不会通过其余界面公开:@Id @GeneratedValue(strategy = GenerationType ....
创建一个简单的RestController @RestController公共类Controloler @Value类MyData {int value; } @GetMapping(value =“/ datas”,produce = MediaTypes.HAL_JSON_VALUE)...
在Spring Boot Data Rest中将自定义端点暴露给基本路径
我正在使用Spring Boot Data Rest,我可以使用follling url列出所有端点:http:// localhost:8080 / api它列出了以下端点:{“_ links”:{“tacos”:{“href”:“http:/ / ...
使用Spring Data JPA和Spring Data REST的Spring Boot 2.0.1.RELEASE项目。似乎忽略了REST端点中的sort参数(但是相同的存储库方法在单元测试中起作用)。 ...
在spring-boot-starter-web项目中实现HATEOAS的最佳方法是什么?
我使用Spring启动了一个REST Api。这些是现在使用的依赖项:spring-boot-starter-parent,spring-boot-starter-web,spring-boot-starter-data-jpa。现在我想添加......
我正在使用Spring Boot 2.0.3,Spring Data REST,Spring HATEOAS。我的域名模型非常有条理,但最近我在自我链接中发现了一个奇怪的行为。我将展示模型的一部分来指出......
我试图得到休息响应作为json而不是我得到字符串。 Controller @RestController @RequestMapping(“/ api /”)public class someController {@Autowired private SomeService ...
JPA EntityManagerHolder无法使用Spring 5.1和Hibernate 5.3强制转换为Hibernate SessionHolder
在我们的项目中,它使用了Spring Boot 2.1.3,Spring Data Rest 3.1.5,Spring Data JPA 2.1.5和Hibernate 5.3.7,我们正在使用Spring Framework中的一些新的可能性......
我有Hateoas的Spring Data Rest作为我的支持。它是代理人的背后。后端网址:backend.com代理网址:proxy.com当我查询代理网址时,例如http://proxy.com/items/1,我收到回复...
我想测试Spring boot 2存储库作为其他控制器应用程序。应用程序从浏览器(http:// localhost:8080 / api / v1 / ehdata)运行良好,但我找不到一个例子如何用Spring测试它...
我使用Spring Data REST创建了REST API。我有实体User和Post,其中User可以有多个帖子(一对多)。现在我需要向我的用户添加帖子。但我需要userA不能......
Spring HATEOAS vs Spring Data Rest
问题是,Spring HATEOAS与Spring Data Rest之间有什么区别?我觉得两者都可以这样做,Spring Data Rest(作为Spring Data的一部分)看起来更有活力。 https://开头的github ....
创建新实体关联时是否有可用的弹簧数据休息事件处理程序?即将a输入到关联资源URL。我与这种关系的实体类是:public ...
Spring Boot集成测试忽略了AutoConfigureMockMvc注释中的secure = false,得到401
无法让我的@SpringBootTest工作。它说身份验证已启用,我不想要。我用@AutoConfigureMockMvc设置了它(安全=假)我提交了一个带有一些JSON的模拟请求和我...
Spring数据Cassandra Rest Id必须可分配给Serializable!:null
在下面的Entity和Repository中,当我访问存储库的rest资源时,我得到Id必须可以赋值给Serializable!:null错误。卷曲-H'接受:application / json'http:// localhost:8080 / ...
我一直在尝试为我的webApp创建一个新用户。我正在使用spring-data-rest。在前端,潜在用户提交他的信息然后应用程序应该创建后端...
我被这个授权问题困扰了,无论我做什么我都无法前进。如果我使用@PreAuthorize保护我的资源,我会收到一个access_denied作为响应。休息控制器:@ ...
在保存包含多个jsons的json对象时,json对象将保存为单个数组而不是多个行。示例json:[{“id”:1, - 这不是主键,而且......