Author : Jadumani Meher
This is a Java Maven Project aims to provide good leaning tutorial for Spring Boot and Hibernate with Web UI (JSP).
Technology Used: Java 8, Spring Framework, Spring Boot, MicroService,RestService, Hibernate, JPA, JUnit, Maven Build, JSP, JQuery, BootStrap,
Database: Provided Configuration required for both SqlLocalDB and MySQL Server - (DB Independent Application)
Tools Required: Spring Tool Suite 4, Microsoft SqlSever Management Studio/MySQL Workbench, Soap UI (Soap UI Optional for Testing)
Steps to Configure and Run Project:
- Import spring-boot-jsp-example project as existing maven project to your STS (Spring IDE Tool) workspace
- Choose the DB which you are going to use SqlLocalDB or MySQL
- Change the Database URL and Credentials in application.properties from resources folder as per your DB requirement (comment uncomment other section)
- Change the Database driver dependency in pom.xml in root folder as per your DB requirement (comment uncomment other section)
- Wait for all Maven dependencies to download and build the project
- Connect to SQL LocalDB or MySQL and Create the DB tables by running the sql scripts provided in /db_script folder as per the DB (separate files provide for SQL LocalDB and MySQL).
- Run the Java Class com.jmeher.tutorials.example.SpringBootApp.java ( This class responsible for start the Spring Boot Application - Contain Main Method)
- After console message as "SUCCESSFULLY STARTED: JMEHER TUTORIALS SPRING BOOT"
- In your Web Browser (Chrome) open the URL : http://localhost:8081/jmeher/index
- Click on Add Customer Details to start adding Customer to DB
- Click on Fetch Customer List to perform other operations on Customer and their addresses
- Execute the JUnit Test Cases from com.jmeher.tutorials.example.test.CustomerServiceTest Class.
- Please refer the Screen Shots Provided for each functional flow.
- Thank You!