Skip to content

Commit

Permalink
Feat(#171): Controller 설정 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
mingeun0507 committed May 25, 2023
1 parent 140a3eb commit 7876b26
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/com/_8attery/seesaw/config/util/MvcConfig.java
Original file line number Diff line number Diff line change
@@ -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<HandlerMethodArgumentResolver> resolvers) {
resolvers.add(clientIpResolver);
}
}

0 comments on commit 7876b26

Please sign in to comment.