Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java SpringDataREST:如何在Kebab情况下转换所有URL?_Java_Spring_Rest_Spring Data Rest_Spring Hateoas - Fatal编程技术网

Java SpringDataREST:如何在Kebab情况下转换所有URL?

Java SpringDataREST:如何在Kebab情况下转换所有URL?,java,spring,rest,spring-data-rest,spring-hateoas,Java,Spring,Rest,Spring Data Rest,Spring Hateoas,我想使用springdatarest通过API公开我的存储库。URL由域名生成。这些URL被简化了 例如,考虑名为EntityA的域,关联的url和rel将是EntityA(在这种情况下) 默认情况下,如何配置spring data rest(或我必须覆盖的内容)以获得kebab盒?(例如,entity-a而不是entityA) 我知道我可以使用@RestRepository并为每个存储库提供URL。但我正在寻找更好的解决方案。我想对实体和搜索方法使用kebak case

我想使用
springdatarest
通过
API
公开我的存储库。URL由域名生成。这些URL被简化了

例如,考虑名为
EntityA
的域,关联的
url
rel
将是
EntityA
(在这种情况下)

默认情况下,如何配置
spring data rest
(或我必须覆盖的内容)以获得
kebab盒
?(例如,
entity-a
而不是
entityA


我知道我可以使用@RestRepository并为每个存储库提供URL。但我正在寻找更好的解决方案。我想对实体和搜索方法使用kebak case