net.guerlab.cloud.web.webmvc.autoconfigure.WebMvcRequestIpHandlerMethodArgumentResolverAutoConfigure Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2018-2025 guerlab.net and other contributors.
*
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/lgpl-3.0.html
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.guerlab.cloud.web.webmvc.autoconfigure;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import net.guerlab.cloud.web.webmvc.support.WebMvcRequestIpHandlerMethodArgumentResolver;
/**
* 构造请求IP参数处理参数解析自动配置.
*
* @author guer
*/
@Slf4j
@AutoConfiguration
public class WebMvcRequestIpHandlerMethodArgumentResolverAutoConfigure implements WebMvcConfigurer {
@Override
public void addArgumentResolvers(List resolvers) {
resolvers.add(new WebMvcRequestIpHandlerMethodArgumentResolver());
log.debug("add WebMvcRequestIpHandlerMethodArgumentResolver");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy