This is a Spring Boot CRUD project template designed for rapid development and practice.
It supports Java 23 and is fully compatible with GitHub Codespaces, allowing you to build and run Spring Boot apps without local setup.
β
Spring Boot (Java 23)
β
RESTful CRUD APIs
β
Spring Data JPA & MySQL
β
Pre-configured application.properties
β
Cloud database support (PlanetScale, Neon, etc.)
β
Ready to use in GitHub Codespaces
- Fork this repository to your GitHub account.
- Click the Code button and select Open with Codespaces.
- Wait for the environment to set up.
- Run the application using:
./mvnw spring-boot:run
The app will be available at:- http://localhost:8080
| Method | Endpoint | Description |
|---|---|---|
| GET | /items |
Get all items |
| GET | /items/{id} |
Get item by ID |
| POST | /items |
Create new item |
| PUT | /items/{id} |
Update item by ID |
| DELETE | /items/{id} |
Delete item by ID |
Edit src/main/resources/application.properties to use a cloud database:
spring.datasource.url=jdbc:mysql://your-cloud-db-url:3306/yourdb
spring.datasource.username=your-username
spring.datasource.password=your-password