如何获取用户IP?
# 如何获取用户IP?
HttpServletRequest
package javax.servlet.http; import javax.servlet.ServletRequest; public interface HttpServletRequest extends ServletRequest{ //... }
1
2
3
4
5
6ServerHttpRequest
package org.springframework.http.server; import org.springframework.http.HttpRequest; public interface ServerHttpRequest extends HttpRequest,HttpInputMessage{ //... }
1
2
3
4
5
6第三方IP定位服务