org.apache.catalina.filters.RemoteIpFilter Java Examples

The following examples show how to use org.apache.catalina.filters.RemoteIpFilter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebMVCConfig.java    From spring-boot with Apache License 2.0 5 votes vote down vote up
/**
 * 自定义,并注册 filter
 * 将代理服务器发来的请求包含的IP地址转换成真正的用户IP
 *
 * @return
 */
@Bean
public FilterRegistrationBean remoteIpFilter() {
    FilterRegistrationBean registration = new FilterRegistrationBean();
    registration.setFilter(new RemoteIpFilter());
    registration.addUrlPatterns("/*");
    registration.setName("RemoteIpFilter");
    log.info("RemoteIpFilter initialized");
    return registration;
}
 
Example #2
Source File: WebConfiguration.java    From spring-boot-demo with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #3
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #4
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #5
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #6
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #7
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #8
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #9
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}
 
Example #10
Source File: WebConfiguration.java    From Spring-Boot-2.0-Cookbook-Second-Edition with MIT License 4 votes vote down vote up
@Bean
public RemoteIpFilter remoteIpFilter() {
    return new RemoteIpFilter();
}