Changing the JSON format for spring-data-rest

柔情痞子 提交于 2019-12-05 07:20:53

This is how you can customize the HATEOAS that Spring Data REST produces:

https://docs.spring.io/spring-data/rest/docs/current/reference/html/#customizing-sdr.customizing-json-output

If you need to completely replace the JSON representation with your own, then you can write and register your own org.springframework.core.convert.converter

Or you write your custom REST endpoints in a plain old @RepositoryRestController and implement your own REST endpoints. (<= I suggest try this)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!