我想通過Rest Api以不同格式(xml,json,rdf,jsonld)公開我的數據,並且我使用Spring-Data-Rest-Framework,並且我知道它在Controller中使用@RequestMapping是可行的,但是在Spring Data Rest中,我只有一個使用@RepositoryRestResource表示法的實體和存儲庫,它不支持@RequestMapping表示法。如何在Spring Data Rest中使用內容協商?
有人可以向我解釋如何使用Spring Data Rest實現以difente格式公開我的數據嗎?
我想在喜歡的網址的結尾expecifice格式(?=格式JSON或?格式= XML)