我已经安装了 php 服务器:https://windows.php.net/download/然后我用这个链接构建了基于 Lumen 的网络服务器:https://computerhalbwissen.de/wie-man-mit-dem-lumen-framework-eine-rest-api-erstellt/我现在可以转到以下路径:cd C:\php\lumen-api然后我输入了这一行:php -S localhost:8000 -t public当我在浏览器地址行中输入它时,我很容易用这一行得到我的 json-String:http://localhost:8000/api/items/我在我的 android avd 的浏览器中做了一个 GET 请求:10.0.2.2:8000/API/项目/我得到以下屏幕:我该怎么做才能避免这种反应。我必须在我的 avd 配置中设置一些东西吗?谢谢您的帮助。
- 1 回答
- 0 关注
- 169 浏览
添加回答
举报
0/150
提交
取消
