This repository contains a collection of modules demonstrating various aspects of Spring Boot, including core functionality, data handling, security, and web capabilities. Each module is designed as a standalone Spring Boot application, showcasing specific features and best practices.
Demonstrates Spring Boot's core functionalities, including dependency injection, bean lifecycle, and application configuration.
pom.xmlSpringCoreApplication.javaDependencyInjectionTest.java
Focuses on integrating Spring Data JPA for database operations, demonstrating CRUD operations, and custom query methods.
pom.xmlSpringDataApplication.javaBook.java
Showcases Spring Security for authentication and authorization, custom user details service, and password encoding.
pom.xmlSpringSecurityApplication.javaSecurityConfiguration.java
Demonstrates building RESTful web services with Spring Web, handling exceptions globally, and validating request parameters.
pom.xmlSpringWebApplication.javaGlobalExceptionHandler.java
To get started with any of these modules, clone the repository and navigate to the desired module directory. Each module is a Maven project, so you can easily build and run them using Maven commands:
mvn clean install
mvn spring-boot:runEnsure you have Maven and JDK 17 installed on your machine to build and run the projects.
Contributions are welcome! If you have improvements or bug fixes, please feel free to fork the repository, make your changes, and submit a pull request.