Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Lab

Java Spring Boot Maven MySQL

Spring Boot

Backend REST API built with Java, Spring Boot and MySQL for learning and practicing backend development concepts.


About

This repository contains my studies and experiments with Spring Boot.

The current project is a REST API built with Java and Spring Boot, implementing CRUD operations for a Person entity. The goal is to practice backend development concepts such as layered architecture, RESTful APIs, dependency injection, exception handling, and database integration with JPA.


Technologies

  • Java 21
  • Spring Boot 3.4
  • Spring Data JPA
  • MySQL
  • Maven

Features

  • CRUD operations for Person entities
  • RESTful API design
  • Layered architecture (Controller → Service → Repository)
  • Exception handling
  • JPA/Hibernate integration
  • Dependency Injection

API Endpoints

Method Endpoint
GET /person
GET /person/{id}
POST /person
PUT /person
DELETE /person/{id}

Example Request

{
  "firstName": "Arthur",
  "lastName": "da Silva Mendes de Almeida"
  "address": "Rua A, Bahia",
  "gender": "Male"
}

Example Response

{
   "firstName": "Arthur",
   "lastName": "da Silva Mendes de Almeida"
   "address": "Rua A, Bahia",
   "gender": "Male"
}

Captura de tela de 2026-07-29 22-25-54.png

Project Structure

src/main/java/com/thurdass/springboot_lab
├── controllers
├── services
├── repository
├── model
└── exception

Running the Project

Clone the repository

git clone https://github.com/thurdass/springboot-lab.git
cd springboot-lab

Configure the database

Edit the application.properties file:

spring.datasource.url=jdbc:mysql://localhost:3306/springboot_lab
spring.datasource.username=root
spring.datasource.password=your_password
spring.jpa.hibernate.ddl-auto=update

Run the application

mvn spring-boot:run

The API will be available at:

http://localhost:8080

Next Steps

  • Bean Validation
  • Spring Security + JWT
  • Swagger / OpenAPI
  • Unit Tests with JUnit
  • Docker

Author

Arthur Almeida

About

A personal Spring Boot lab for learning, experimenting, and building REST APIs.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages