A multi-module Spring Boot project demonstrating REST, GraphQL, WebSocket, and Messaging patterns.
This project is intended as a learning and experimentation platform for Spring Boot features.
- Entity and Repository
- REST API with sample endpoints
- GraphQL API with queries and mutations
- WebSocket server for push notifications
- Messaging module (example: ActiveMQ)
- JGroups network notifications
- Multi-module architecture for modular and reusable code
Module | Description |
---|---|
core |
Shared entities, DTOs, and services |
restapi |
REST controllers and endpoints |
graphql |
GraphQL schema, resolvers, and DTO mappings |
messaging |
Messaging components (publish/subscribe examples) |
websocket |
WebSocket server and client handling |
- Java 21+
- Maven 3.8+
Clone the repository:
git clone https://github.com/jono-coder/spring-boot-lab.git
cd spring-boot-lab
mvn clean install
# REST API
mvn spring-boot:run -pl restapi
# GraphQL API
mvn spring-boot:run -pl graphql
# WebSocket server
mvn spring-boot:run -pl websocket