Is it possible to use Spring Data Rest/HATEOAS without Spring Boot, Spring MVC on an persistence storage based application. If so how can this be done?
-
You question is quite vague. If you can be a little more detailed on what you are trying to accomplish, I could probably give a more detailed answer.DavidR– DavidR2015-12-21 14:54:12 +00:00Commented Dec 21, 2015 at 14:54
-
`to be more specific I am wondering if I need all the spring mvc stuff to provide a rest/hateoas interface htpp endpoints-based api for spring-data server app that would enable easy access for nosql storage.mCs– mCs2015-12-22 08:48:19 +00:00Commented Dec 22, 2015 at 8:48
-
1Spring-data doesn't handle endpoints, SpringMVC does. What do you plan to use as your web application if not Spring? Whatever web application you choose shouldn't hurt you on the decision to use Hateoas (Hateoas does not use spring-data, but spring-data will use Hateoas). However trying to use spring-data with another web application sounds problematic.DavidR– DavidR2015-12-22 14:22:48 +00:00Commented Dec 22, 2015 at 14:22
-
Thank you very much. That is what I was pretty much all about. I have accepted the ansewer altho this comment is more thatn that one accepted.mCs– mCs2015-12-24 11:41:16 +00:00Commented Dec 24, 2015 at 11:41
Add a comment
|
1 Answer
The short answer is Yes. This has been around even before Spring Boot.
The important thing is to ensure the API jars are on your classpath. Get the latest release of Hateoas here and latest release of Spring Data JPA here and add to the classpath. Just pick from the setup you are using (e.g., Maven, Gradle).
1 Comment
Alberto San José
have you tried it? I am asking because I am trying to get this working for integration tests that are not a Spring Boot project and I am having, precisely, Initialization problems and I suspect that is because something Boot does under the hood because my Traverson code is exactly as in the examples in Spring doc docs.spring.io/spring-hateoas/docs/1.2.2/reference/html/#client.