@Override
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
//config.setBasePath("api");
try {
config.exposeIdsFor(UserEntity.class);
ClassPathUtils.streamClassesAnnotatedWith(UserEntity.class, Entity.class)
.peek(clazz -> log.debug("enable @Id json mapping for entity {}", clazz.getSimpleName()))
.forEach(config::exposeIdsFor);
} catch (IOException e) {
throw new IllegalStateException("Could not exposeIds for @Entity classes");
}
}
RepositoryConfig.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:amv-access-api-poc
作者:
评论列表
文章目录