22 lines
641 B
Java
22 lines
641 B
Java
package eu.eudat.configurations;
|
|
|
|
import eu.eudat.handlers.PrincipalArgumentResolver;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Created by ikalyvas on 12/15/2017.
|
|
*/
|
|
@Configuration
|
|
public class WebMVCConfiguration extends WebMvcConfigurerAdapter {
|
|
|
|
|
|
@Override
|
|
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
|
|
argumentResolvers.add(new PrincipalArgumentResolver());
|
|
}
|
|
}
|