我在web端上传了图片,用的绝对地址String loadpath=this.getServletConfig().getServletContext().getRealPath("/");放到这个地址的stores文件夹下,不在webapps下,图片名为store2.png,在tomcat中用https://localhost:8080/FoodServer/stores/store2.png可以看到我上传的图片的页面,但是在android端用地址https://10.0.2.2:8080/FoodServer/stores/store2.png,总是显示不出图片,是android端的地址错了吗?还是其他的问题?求大神解答!
我在web端上传了图片,用的绝对地址String loadpath=this.get