Spring
![[Error Handling] Spring - lombok, MapStruct를 동시에 사용하는 경우](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F5ew29%2FbtrKl3MUXiV%2Fl2qw3h67bXsM4AJK8ikyHK%2Fimg.png)
[Error Handling] Spring - lombok, MapStruct를 동시에 사용하는 경우
💣 문제 상황 MapStruct로 객체 간의 Mapper 코드를 자동으로 구현하려고 했는데 다음과 같은 에러가 발생했다. 더보기 MemberMapperImpl.java:46: error: constructor MemberResponseDto in class MemberResponseDto cannot be applied to given types; MemberResponseDto memberResponseDto = new MemberResponseDto(); ^ required: long,String,String,String found: no arguments reason: actual and formal argument lists differ in length 📋 코드 더보기 // build.gradl..
[Spring] 정적 컨텐츠, MVC와 템플릿 엔진, API
정적 컨텐츠 - html 파일을 그대로 불러와 웹페이지에 표시 MVC와 템플릿 엔진 - 템플릿 엔진을 모델, 뷰, 컨트롤러 방식으로 나누어 뷰를 템플릿 엔진으로 html을 렌더링해 웹페이지에 표시 // hello-spring/src/main/java/hello/hellospring/controller/HelloController.java package hello.hellospring.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframewo..