I have been looking at various examples of how to use Spring with REST. Our end target is a Spring HATEOAS/HAL
setup
I have seen two distinct methods for rendering REST within Spring
Via @RestController
within a Controller
Via @RepositoryRestResource
within a Repository
The thing I am struggling to find is why would you use one over the other. When trying to implement HAL
which is best?
Our database backend is Neo4j.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…