Category: IT/개발

[스프링] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource []: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘basicErrorController’ method

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource []: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘basicErrorController’ method requestMapping 별도로...

API Error 응답 구조체 설계

에러 응답 처리에 대한 공통 Object 규격을 갖고있어야겠다 생각하여 만들어봄. ApiErrorDetail은 빌더패턴을 이용하여 생성이 가능하도록 구성.. import com.fasterxml.jackson.annotation.JsonFormat; import org.springframework.http.HttpStatus; import java.io.Serializable; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; public class...