Registration and Login Example with Spring MVC 4, Spring Security, Spring Data JPA, XML Configuration, Maven, JSP, and MySQL.
This java program is used to check login register user to mysql database and logout. Used for K8 orchestration.
- JDK 1.8 or later
- Maven 3 or later
- MySQL 5.6 or later
- Spring MVC
- Spring Security
- Spring Data JPA
- Maven
- JSP
- MySQL
- git clone https://github.com/muralindia/java_login_tomcat_mysql.git
- cd java_login_tomcat_mysql
- Install jdk and set java_home and path
- mvn package (ensure maven is installed, else apt-get install -y maven and then mvn package)
- The above successful execution will create folder target with files containing account-1.0-SNAPSHOT.war, etc.
- Run docker build command, $ docker build -t java_login_tomcat_mysql:1.0 .
- This will build the java application image which is used for K8 orchestration frontend testing.
- Similarly, https://github.com/muralindia/Docker-Files/tree/master/mysql-dockerfile another docker image can be built to store the application user register data in mysql database.