- This Project is a basic dynamic web aplication which is built on Spring MVC Architecture.
- This just a practice project from which we can easily understand the flow of data and requests in a Model View Control(MVC) Architecture.
- Microsoft SQL server is used for database purpose.
- Stored Procedures are used instead of regular SQL queries from JAVA.
- All the web pages are downloaded from online resources.
- All the dependecies of the project are mentioned in pom.xml from line 18 onwards.
-
Eclipse IDE (version 2019-03 (4.11.0) Preferred)
-
JAVA 8 SDK/JRE
-
Download and Install Microsoft SQL Server 2014 Management Studio and Create table ad insert the mock data form bank/database/Tables foder.
-
Change the Microsoft SQL Server 2014 Management Studio login credentials in jdbc.properties file.
-
Inside Microsoft SQL Server 2014 Management Studio, after creating database table, go to Programmability/Stored Procedures, Create a Stored Procedure and copy-paste the queries from the bank/Database/Stored Procedure folder.
-
Clone/pull the project to your local system.
-
Download the Ecilipse IDE, Import the Project in Ecilipse IDE.
-
In src/Mail, go to the SendMail.java and update the emailId and password.
-
Download Apache Tomcat and Run the Project on Apache Tomcat Server.
- web.xml is the starting point server initialy search for the request("/" initially) in the web.xml.
- The url pattern will be matched and the servlet with the specified name will be searched("spring" here).
- Execution goes to the servlet with name where we give our servlet class in web.xml ("dispatcherServlet class" here).
- dispatcherServlet class sends the execution to spring-servlet.xml where we give the base package name("com.bank").
- The dispatcherServlet class search for controller classes for every request and search the class handling the request. package=com.bank.controller
- Controller class can be mady by using annotation @controller(import the related package)
- Controller class is handling all the Http Requests and sending the to AppDao Class through a service class called AppService.
- In AppDao class all the JDBC related code is present.
- JAVA 1.7.0 or later
- Maven 3.2.0 or later
- Apache Tomcat Server 8.0.3 or later
- Microsoft SQL Server 2014 Management Studio 18.7.1 or later