From abdd9977a0153d1a7ea8f37b8b4d2e0c87474f49 Mon Sep 17 00:00:00 2001 From: DDonghyeo Date: Mon, 1 Jul 2024 17:43:33 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20WebMvcConfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notiservice/config/WebMvcConfig.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 noti-service/src/main/java/com/waither/notiservice/config/WebMvcConfig.java diff --git a/noti-service/src/main/java/com/waither/notiservice/config/WebMvcConfig.java b/noti-service/src/main/java/com/waither/notiservice/config/WebMvcConfig.java new file mode 100644 index 00000000..3090586a --- /dev/null +++ b/noti-service/src/main/java/com/waither/notiservice/config/WebMvcConfig.java @@ -0,0 +1,21 @@ +package com.waither.notiservice.config; + +import com.waither.notiservice.global.annotation.AuthUserArgumentResolver; +import lombok.RequiredArgsConstructor; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.method.support.HandlerMethodArgumentResolver; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +import java.util.List; + +@RequiredArgsConstructor +@Configuration +public class WebMvcConfig implements WebMvcConfigurer { + + private final AuthUserArgumentResolver authUserArgumentResolver; + + @Override + public void addArgumentResolvers(List resolvers) { + resolvers.add(authUserArgumentResolver); + } +}