2

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?

4
  • 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. Commented 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. Commented Dec 22, 2015 at 8:48
  • 1
    Spring-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. Commented 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. Commented Dec 24, 2015 at 11:41

1 Answer 1

1

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).

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.