This project demonstrates how to integrate QueryDSL with Spring Boot for implementing CRUD (Create, Read, Update, Delete) operations on a database.
QueryDSL is a framework that provides a type-safe way to construct SQL-like queries in Java. In this demo, we'll showcase how to use QueryDSL with Spring Boot to perform CRUD operations on a database.
- Integration of QueryDSL with Spring Boot for database operations
- Implementation of CRUD functionality using QueryDSL
- Demonstration of how to define and use QueryDSL predicates for dynamic filtering
src/main/java
: Contains the Java source code for the Spring Boot application.src/main/resources
: Contains configuration files and static resources.pom.xml
: Maven project configuration file.
- Clone the repository:
git clone https://github.com/iammahesh123/QueryDSL-Crud-Application-Demo.git
- Navigate to the project directory:
cd spring-security-csrf-demo
- Build the project using Maven:
mvn clean package
- Run the application:
mvn run
- Access the application in your web browser: http://localhost:8080
- Perform CRUD operations on the database entities and observe the results.
- application.properties: Contains database connection and other application-specific configurations.
- pom.xml: Includes QueryDSL and other required dependencies.
- Java 8 or higher
- Spring Boot
- QueryDSL
- Spring Data JPA
Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.