android访问Java接口404
给android客户端写的接口,用浏览器访问可以找到action
执行后输出json,但是android访问log显示404.
实在搞不懂原因。希望得到帮助。
浏览器访问url,tomcat的log输出
org.apache.struts2.interceptor.FileUploadInterceptor (CommonsLogger.java:68) DEBUG - Bypassing //validimg
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor (CommonsLogger.java:68) DEBUG - Validating //validimg with method validimg.
org.apache.struts2.interceptor.FileUploadInterceptor (CommonsLogger.java:68) DEBUG - Bypassing /test/testAction
android访问tomcat的log:
org.apache.struts2.interceptor.FileUploadInterceptor (CommonsLogger.java:68) DEBUG - Bypassing //404
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor (CommonsLogger.java:68) DEBUG - Validating //404 with method execute.
org.apache.struts2.interceptor.FileUploadInterceptor (CommonsLogger.java:68) DEBUG - Bypassing //imgurl
------解决方案--------------------凡是404应该都是访问页面不存在,访问的路径写错了吧。