A beginner-friendly Spring Boot application exploring Spring Security concepts and authentication mechanisms.
This project helps me understand:
- Spring Security configuration
- Database authentication with MySQL
- Password encryption using BCrypt
- REST API security
- JWT token concepts (work in progress)
- Java 17
- Spring Boot 3.x
- Spring Security
- MySQL Database
- Maven
- ✅ User registration and login
- ✅ Password encryption with BCrypt
- ✅ Database-driven authentication
- ✅ Protected REST endpoints
- ⏳ JWT implementation (learning phase)
POST /register - Create new user
POST /login - User login
GET /api - Protected hello endpoint
GET /student - Protected student data
-
Clone the repository
git clone https://github.com/pratham5816/Spring-Security-Basics.git
-
Configure MySQL database in
application.properties -
Run the application
./mvnw spring-boot:run
- Started with basic HTTP authentication
- Exploring JWT for stateless authentication
- Understanding Spring Security filter chain
- Learning password hashing best practices
This is a learning project as I explore backend security concepts. Feedback and suggestions are welcome!