Current I use Django and Python for web development.
I know Java, Spring, and Hibernate but not to an advanced level.
My main aim is to build a website with user registration and some static pages.
Now in Django, the flat pages modules are best for static pages and this is most commonly used.
Is there anything like that which I can use in Java with Spring? So that I don’t have to code. Because I find it very hard to code the whole administration section for simple websites.
A simple way to serve up static pages would be to create a simple Controller that has a basic
ReqestMappingwhich takes aPathVariable. Create static pages for each identifier and let the Controller serve them up. As follows:In the above,
idis the name of the JSP file. Example call:http://myapp.com/static/about/view.do.