官方说spring data rest可以用在已有spring应用上,这个注解构建restful服务很好用,但适用于spring boot 2.x,已有独立的spring5 mvc框架不行
@RepositoryRestResource(collectionResourceRel = "peoples", path = "peoples")
官方说spring data rest可以用在已有spring应用上,这个注解构建restful服务很好用,但适用于spring boot 2.x,已有独立的spring5 mvc框架不行
@RepositoryRestResource(collectionResourceRel = "peoples", path = "peoples")