- JDK 8. Which can be downloaded from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- MySQL Database Server (or any other DB of your choice). MySQL can be downloaded from here: http://dev.mysql.com/downloads/
- IDE of your choice. Eclipse - https://eclipse.org/downloads/ AND/OR Netbeans - https://netbeans.org/downloads
The POM:
<springframework.version>4.3.14.RELEASE</springframework.version>
<springsecurity.version>4.2.4.RELEASE</springsecurity.version>
<hibernate.version>5.1.12.Final</hibernate.version>
<hibernate.validator.version>5.4.2.Final</hibernate.validator.version>
<ch.qos.logback.version>1.1.7</ch.qos.logback.version>
<javax.validation.api.version>1.1.0.Final</javax.validation.api.version>
<javax.servlet.api.version>3.1.0</javax.servlet.api.version>
<javax.servlet.jsp.api.version>2.3.1</javax.servlet.jsp.api.version>
<javax.servlet.jstl.version>1.2</javax.servlet.jstl.version>
<mysql.connector.version>5.1.45</mysql.connector.version>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<warName>Spring4Hibernate5</warName>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
Login screen
Admin login
User registration (only for Admin User)
Validations
Editor login (having only edit permissions)
Viewer login (read only permissions)
Access denied page.
Try to access:
http://localhost:8088/Spring4Hibernate5/delete-user-admin
Create a basic Sping MVC CRUD application which has:
- User login.
- Login-Logout feature.
- Authentication Filter.
- Remember-me feature
- Spring Model, View and Controller.
- Access denied for unauthorized users.
- Hibernate Transaction Management
- Bootstrap 4 CSS usage.
Source Code:
No comments:
Post a Comment
Leave a comment...