标签: java xml spring rest
我正在寻找导出ID的xml配置。默认情况下,spring数据休息存储库不会导出id属性。
我找到的解决方案只能通过java类配置。
Spring boot @ResponseBody doesn't serialize entity id
在xml config中基本相当于config.exposeIdsFor(Entity.class)。