This repository contains Spring projects code.
-
Application Context, XML bean configuraion : spring-core/application-context
-
Injecting dependencies using @Autowired : spring-core/autowired-example
-
Annotations based configuration and classpath scanning using Stereotype annotations : spring-core/stereotype-annotations
-
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
-
Simple Spring Data JPA example with H2 : spring-data-jpa-example
-
Transaction, Programmatic approach : programmatic-transaction
-
Transaction, Declarative approach : declarative-transaction
- Simple Spring MVC project : spring-mvc/spring-mvc-start
-
REST API with MongoDB and Swagger UI : spring-boot/rest-api-mongodb
-
Spring RestTemplate example : spring-boot/rest-template-example
-
Circuit Breaker example with Resilience4j : spring-boot/circuit-breaker-example
-
Feign Client example with Exception Handling : spring-boot/feign-client-example
-
Producing & Consuming String messages with Spring Kafka : spring-kafka/spring-kafka-string
-
Producing & Consuming JSON messages with Spring Kafka : spring-kafka/spring-kafka-json