This is a simple User Authentication System built using Spring MVC, Thymeleaf, Hibernate (JPA), and MySQL.
- User Registration with form validation
- Login functionality
- Profile page displaying user details after successful login
- Logout functionality (session management using @SessionAttributes)
- Proper error and success message rendering
- Java 17
- Spring MVC
- Spring Data JPA (Hibernate)
- MySQL Database
- Thymeleaf (template engine)
- HTML, CSS
- Maven
- Controller Layer
- Service Layer
- Repository Layer
- Entity Layer
-
Clone the project:
-
Open in your IDE (STS, IntelliJ, Eclipse)
-
Create MySQL Database:sql create database user_auth_db;
4.Configure your application.properties with DB credentials. 5.mvn spring-boot:run 6.http://localhost:8080/