[quote=引用 6 楼 Daven172 的回复:] [quote=引用 1 楼 rumlee 的回复:] 还从来没有采用过你这种方式开发webservice,一般都是当作webproject来做。你这应该也是用的什么框架吧,框架难道不知道获取ip么。
[quote=引用 10 楼 Daven172 的回复:] [quote=引用 9 楼 rumlee 的回复:] [quote=引用 6 楼 Daven172 的回复:] [quote=引用 1 楼 rumlee 的回复:] 还从来没有采用过你这种方式开发webservice,一般都是当作webproject来做。你这应该也是用的什么框架吧,框架难道不知道获取ip么。
[quote=引用 9 楼 rumlee 的回复:] [quote=引用 6 楼 Daven172 的回复:] [quote=引用 1 楼 rumlee 的回复:] 还从来没有采用过你这种方式开发webservice,一般都是当作webproject来做。你这应该也是用的什么框架吧,框架难道不知道获取ip么。
[quote=引用 1 楼 rumlee 的回复:] 还从来没有采用过你这种方式开发webservice,一般都是当作webproject来做。你这应该也是用的什么框架吧,框架难道不知道获取ip么。
注解也太强大了吧。。 获取客户端IP应该还是一样的吧: MessageContext messageContext//Axis解析得到 HttpServletRequest request = (HttpServletRequest) messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); String mechineIp=request.getRemoteAddr(); System.out.println("==IP=="+mechineIp);
还从来没有采用过你这种方式开发webservice,一般都是当作webproject来做。你这应该也是用的什么框架吧,框架难道不知道获取ip么。
81,094
社区成员
341,717
社区内容
加载中
试试用AI创作助手写篇文章吧