
Generate a Spring Boot project with Spring Initializr, choose web and data dependencies, and import with Maven. Add DevTools, configure GSP pages and Tomcat for a CRUD app.
Create department and employee models with id, name, and fields like first name, last name, email, date, gender, and department, then generate getters and setters for database and service layers.
Create a database schema and two tables, employee and department, with primary keys and fields, run a test query, and prepare to connect the Spring Boot CRUD app.
Connect your application to the database by configuring the application.properties file with the schema name, the username, the password, and the secret.
Demonstrate implementing the DAO layer in a Spring Boot CRUD app by building prepared statements for inserting, updating, and fetching employees, and loading departments.
Define a Spring Boot employee controller with mappings for new, save, view, edit, and delete operations, populate department lists, and redirect after save to the employee list.
Create a spring boot controller with mappings for CRUD operations on employees, wiring an employee service, and managing model attributes, views, and redirects to the appropriate employee pages.
Create a proper src/main structure to house your GSP files, set up a dedicated GSP folder, and add JSP pages for employee views to support the CRUD application.
Create an add employee jsp page in a spring framework app, using bootstrap for responsive layout, with model attribute binding, action post to save employee, and a dynamic department dropdown.
Create a new employee by entering name, gender, date of birth, and email, then click create and verify insertion on the view employees page successfully.
Gain an overview of bootstrap essentials, from form controls and labels to sizing and buttons, and explore grid layouts and containers via the official docs.
If you are learning Spring Boot and if you need some more practical exposure of writing code and creating projects I have some other courses as well which serves that very same purpose.
CRUD app using Spring Boot + JPA + PostgreSQL + Thymeleaf - https://www.udemy.com/course/crud-app-using-spring-boot-jpa-postgresql-thymeleaf
Build Microservices with Spring Boot, REST & MySQL - https://www.udemy.com/course/build-microservices-with-spring-boot-rest-mysql
Spring Boot is a really hot topic these days and there are a lot of job openings in this field too and so does the competition. You will see a lot of courses on Udemy where everyone has nicely explained what Spring Boot is and how does it help a developer which maybe can help you crack the technical interview while job hunting.
But, after you get into the organization, you have to be ready to code which you will only gain after doing a lot of practicals on Spring Boot, So, here I am with one of the best real-time applications to get make you ready enough to have some exposure to the real technical world.
In this course, we are going to create a CRUD application from scratch using Spring Boot, JSP, and MySQL.
CRUD application means to CREATE, READ, UPDATE, and DELETE.
Here, I've taken a reference of WORKFORCE MANAGEMENT application which is basically used to manage resources. This application is always used in organizations to manage employees. Some features of this application:
Add a new employee to the application
New/Existing users can add/edit personal information or skillset information like adding new skills to it.
Depending on the skill set of an employee, allocate an employee to a project or allocate some percentage of the employee's work to a project
Remove an employee from the application
... and so on...
So, I've taken an example of the above application which I also made from scratch in one of the previous organizations. Hence, in this course, I'm trying to showcase a mini version of the above-explained application which is to:
CREATE EMPLOYEES
DELETE EMPLOYEES
UPDATE EMPLOYEES
VIEW EMPLOYEES
This course will really help you to gain exposure to what real-time applications look like.