本地访问本地机器时localhost和hasIpAddress('192.168.1.0/16')不匹配
因为当时用http://localhost:8081/bs/访问本地的应用程序时
request.getRemoteAddr() 获取到的是 127.0.0.1,所以和hasIpAddress('192.168.1.0/16')不匹配
要用地址
因为当时用http://localhost:8081/bs/访问本地的应用程序时
request.getRemoteAddr() 获取到的是 127.0.0.1,所以和hasIpAddress('192.168.1.0/16')不匹配
要用地址
暂无评论。
评论功能维护中,当前仅展示历史评论。