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 MapStruct is configured in the parent pom.xml to standardize object mapping across all backend services. dependencyManagement — Defines the version centrally. Sub-modules can choose to use MapStruct by adding the dependency (without specifying version). annotationProcessorPaths in build plugins — Runs annotation processors during compilation to generate mapper implementation classes (e.g., MemberMapperImpl.java).

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