Skip to content

Commit

Permalink
πŸ› fix: WebMvcConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
DDonghyeo committed Jul 1, 2024
1 parent 2c0d505 commit abdd997
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<HandlerMethodArgumentResolver> resolvers) {
resolvers.add(authUserArgumentResolver);
}
}

0 comments on commit abdd997

Please sign in to comment.