- The Spring Boot Registration Application Form is a web-based registration form that allows users to insert, view, update, and delete registration records. It provides a user-friendly interface for managing registration information.
- Features
- Prerequisites
- Getting Started
- Running the Application
- Usage
- Project Structure
- Technologies Used
- ID
- Name
- Profile photo
- Gender
- Address
- City
- Pin (6-digit numeric)
- State
- Email (validated for proper email format)
- Contact (10-digit numeric)
- View, Insert, Update, and Delete operations for registration records.
- Data validation during insertion with error messages.
- Paging of records (8 records per page).
Before you begin, ensure you have met the following requirements
- Java Development Kit (JDK) 1.8
- Maven (for building the project)
- MySQL Database (for database storage)
- IDE I am using IntelliJ IDEA
- Installation
- Clone this repository to your local machine
- Create a MySQL database named application_form. You can change the database configuration in src/main/resources/application.properties if needed.
- Open the project in your IDE
- Build the project using Maven
- Start the Spring Boot application
- Access the application in your web browser at http://localhost:8080/registration/
-
Visit http://localhost:8080/registration/ to access the registration form and manage registration records.
-
Use the form to insert new records click on insert Data tab at top right corner and for view records click on view records tab
- Use the form to insert new records click on insert Data tab
- Inserting new data
- Display Message: “Record inserted successfully”
- Validation rules are applied for data entered in the registration form, and appropriate error messages are displayed if validation fails.
- For Pin (6 digit numeric), Email (use validation Only email allowed),
- For Contact (10 digit numeric)
- View existing records
- View Record with Paging : 1 to 8 record > then (2nd)next page with Records are paginated with 8 records per page.
- And (2nd)next page with Records are paginated with 8 records per page.
- Edit existing records, Here ID 1 name i am updating you can update any other field as well
- I am changing name sharma to kumar
- Now you can see name updated successfully
- I am Deleting ID 13 From records
- ID 13 Deleted successfully from Records List
- ID 13 Deleted successfully from Mysql Database also
- List of all records save in Mysql Database
The project is organized as follows
- src/main/java/com/registration: Java source code for the application.
- entity: Entity classes representing database tables.
- payload: DTO (Data Transfer Object) classes.
- repository: Spring Data JPA repositories.
- service: Service interfaces and implementations.
- controller: Controllers for handling HTTP requests.
- src/main/resources: Configuration files and Thymeleaf templates.
- pom.xml: Maven project configuration file.
- Spring Boot
- Spring Data JPA
- Thymeleaf (HTML template engine)
- MySQL Database
- ModelMapper
- Lombok
- Validation API
- Bootstrap (for styling)
- HTML (HyperText Markup Language)
- Remember to configure the application.properties file with the correct database connection details