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); + } +}