BACKEND(spring-microservice)

This category is for posts related to Spring, Spring Boot, and Spring-based microservices.

MapStruct Debug in Microservice

1. Configuration in Microservice For MapStruct to function properly within a Spring Boot microservices architecture, both the parent and sub-module pom.xml files must be correctly configured: Parent pom.xml <dependencyManagement> <dependencies> <dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>1.5.5.Final</version> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version> <configuration> <annotationProcessorPaths> <path> <groupId>org.mapstruct</groupId> <artifactId>mapstruct-processor</artifactId> <version>1.5.5.Final</version> </path> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.30</version> </path>

MapStruct Debug in Microservice Read More »

Spring Boot

Adventuretube REST API Architecture Principle

1. Correct Design of Controller and Service Principle: Thin Controller, Fat Service Controllers should only handle HTTP concerns: routing, request/response formatting, and returning status codes. Services should encapsulate business logic, including all validations and error throwing. Why This Matters 1. Separation of Concerns Layer Responsibility Controller Handle HTTP interface Service Contain domain logic and validation

Adventuretube REST API Architecture Principle Read More »

API Design