From 7876b268f107a97405abb5db01aa5ba92b732303 Mon Sep 17 00:00:00 2001 From: mingeun0507 Date: Thu, 25 May 2023 16:42:22 +0900 Subject: [PATCH] =?UTF-8?q?Feat(#171):=20Controller=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seesaw/config/util/MvcConfig.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/com/_8attery/seesaw/config/util/MvcConfig.java diff --git a/src/main/java/com/_8attery/seesaw/config/util/MvcConfig.java b/src/main/java/com/_8attery/seesaw/config/util/MvcConfig.java new file mode 100644 index 0000000..4186164 --- /dev/null +++ b/src/main/java/com/_8attery/seesaw/config/util/MvcConfig.java @@ -0,0 +1,20 @@ +package com._8attery.seesaw.config.util; + +import com._8attery.seesaw.config.resolver.ClientIpResolver; +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 MvcConfig implements WebMvcConfigurer { + + private final ClientIpResolver clientIpResolver; + + public void addArgumentResolvers(List resolvers) { + resolvers.add(clientIpResolver); + } +}