Gourab Konar
Gourab Konar

Reputation: 170

Render Html/js from server side in Spring

Render Html/js from server side in Spring boot .I want that when there is a backend REST Api call .I want to render everything in js but not using jsp .I want to know how to use viewResolver so that I can do it in js using xhr requests and html . Thanking you in advance ,any help will be extremely helpful

Upvotes: 1

Views: 251

Answers (1)

René Höhle
René Höhle

Reputation: 27305

I don't know if i understood your problem correctly but for spring there is a good extension Hateoas to build RESTful APIs. There you can define how to render your output.

https://spring.io/guides/gs/rest-hateoas/

Upvotes: 1

Related Questions