Answer the question
In order to leave comments, you need to log in
Angular 2 + Spring is it good to do everything on REST controllers?
Good day. I am learning Spring and Angular 2. I am learning by writing a web application using these frameworks. The application is a control panel for some server that implements business logic. Access to all sections of the application is planned to be made secure, for which it is planned to use spring security.
Actually the question itself: as I see it, angular does not need jsp at all on the server side, it only needs to pull html from the server for templates, will it be good practice in springs to do everything through rest controllers returning static html? And already on them to hang security guards?
The question arose, because before that in my practice everything was done on jsp, and I did not see examples of rest controllers returning html.
If you know where to get ready-made application frameworks, I will be grateful.
Answer the question
In order to leave comments, you need to log in
Actually the question itself: as I see it, angular does not need jsp at all on the server side, it only needs to pull html from the server for templates, will it be good practice in springs to do everything through rest controllers returning static html? And already on them to hang security guards?
it only needs to pull html from the server for templates
HTML templates can be served generally as static content, through nginx or whatever you have there.
It is unlikely that they implement double templating, or contain nda information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question