Skip to content

eMahtab/spring-projects

Repository files navigation

Spring Projects

This repository contains Spring projects code.

Spring Core

  1. Application Context, XML bean configuraion : spring-core/application-context

  2. Injecting dependencies using @Autowired : spring-core/autowired-example

  3. Annotations based configuration and classpath scanning using Stereotype annotations : spring-core/stereotype-annotations

  4. Exception Handling in Spring Application

    • Exception handling with try-catch in Controller methods error-handling
    • Exception handling with @ExceptionHandler annotated methods in Controller class exception-handler
    • Exception handling with Global Exception Handler class annotated with @RestControllerAdvice global-exception-handling

Spring Data JPA

  1. Simple Spring Data JPA example with H2 : spring-data-jpa-example

  2. Transaction, Programmatic approach : programmatic-transaction

  3. Transaction, Declarative approach : declarative-transaction

Spring MVC

  1. Simple Spring MVC project : spring-mvc/spring-mvc-start

Spring Boot

  1. REST API with MongoDB and Swagger UI : spring-boot/rest-api-mongodb

  2. Spring RestTemplate example : spring-boot/rest-template-example

  3. Circuit Breaker example with Resilience4j : spring-boot/circuit-breaker-example

  4. Feign Client example with Exception Handling : spring-boot/feign-client-example

Spring Kafka

  1. Producing & Consuming String messages with Spring Kafka : spring-kafka/spring-kafka-string

  2. Producing & Consuming JSON messages with Spring Kafka : spring-kafka/spring-kafka-json

About

A repository for all Spring projects code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published