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