首先,我们在tomcat的webapps目录下载新建一个文件夹叫web(这个是个人喜欢的)
update.xml里面的内容
- <?xml version="1.0" encoding="utf-8"?>
<update>
<version>1.0</version>
<apkurl>http://192.168.1.5:8080/Security/new.apk</apkurl>
<basic>Hello World</basic>
</update>
好啦,现在测试一下,在浏览器里面输入http://localhost:8080/Security/update.xml (要记得开启服务器哦) 如果能够看到我们刚刚写的update.xml里面的内容,那么,你的服务器就配置成功啦!