apache /
rocketmq
Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
Loading repository data…
jha-deepesh / repository
A simple Java Spring Boot CRUD application demonstrating basic Create, Read, Update, and Delete operations using JPA and H2 database. Ideal for interview preparation and learning RESTful API development with Java. Includes Maven build configuration and example endpoints for managing entities.
This project is a beginner-friendly Java Spring Boot application demonstrating basic CRUD (Create, Read, Update, Delete) operations using RESTful APIs, JPA, and H2 in-memory database. It is designed to help you learn the fundamentals of building web applications with Spring Boot.
git clone https://github.com/your-username/demo-java-app-crud.git
cd demo-java-app-crud/demo
mvn clean install
mvn spring-boot:run
jdbc:h2:mem:testdbdemo/
├── src/main/java/com/demo1/deepjha/demo/
│ ├── DemoApplication.java # Main Spring Boot application
│ ├── entities/EmployeeEntity.java # Entity class (maps to DB)
│ ├── dto/EmployeeDTO.java # Data Transfer Object
│ ├── repositories/EmployeeRepository.java # JPA Repository
│ ├── services/EmployeeService.java # Business logic
│ ├── controllers/EmployeeController.java # REST API endpoints
│ └── configuration/AppConfig.java # ModelMapper bean config
├── src/main/resources/
│ └── application.properties # DB and app config
├── pom.xml # Maven dependencies
POST /employees - Add a new employeeGET /employees - Get all employeesPUT /employees/{id} - Update employee by IDDELETE /employees/{id} - Delete employee by ID{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "1234567890",
"dateOfJoining": "2023-01-01",
"isActive": true
}
Represents a table in the database. Example: EmployeeEntity.java defines fields like id, name, email, etc.
Used to transfer data between layers (e.g., from client to server). Keeps internal model safe and flexible.
Interface for database operations. Extends JpaRepository to provide CRUD methods.
Contains business logic. Calls repository methods and handles data transformation.
Defines REST API endpoints. Receives HTTP requests and returns responses.
Library for mapping between DTOs and Entities. Reduces manual conversion code.
ModelMapper modelMapper = new ModelMapper();
EmployeeEntity entity = modelMapper.map(employeeDTO, EmployeeEntity.class);
application.properties:
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.jpa.database-platform is set in application.properties.spring.h2.console.enabled=true.Happy coding! If you have questions, check the resources above or open an issue.
Selected from shared topics, language and repository description—not editorial ratings.
apache /
Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
Activiti /
Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.
perwendel /
A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
dropwizard /
A damn simple library for building production-ready RESTful web services.
javalin /
A simple and modern Java and Kotlin web framework
alibaba /
📌 a missing Java std lib(simple & 0-dependency) for framework/middleware, provide an enhanced InheritableThreadLocal that transmits values between threads even using thread pooling components.