自己搭建的restserver用安卓连接的时候报错:failed to connect to /127.0.0.1 (port 8080) after 60000ms: isConnected faile

慕课网电商项目RestServer api spring boot版本


地址:

https://gitee.com/yi_dao2000/api

形如

http://ip:8080/RestDataServer/api/user_profile

其中ip改为自己本机ip,比如192.168.0.x等,

但是不要用localhost和127.0.0.1会提示错误

failed to connect to /127.0.0.1 (port 8080) after 60000ms: isConnected faile

  • http://ip:8080/RestDataServer/api/about
  • http://ip:8080/RestDataServer/api/add_shop_cart
  • http://ip:8080/RestDataServer/api/address
  • http://ip:8080/RestDataServer/api/classify_content
  • http://ip:8080/RestDataServer/api/goods_detail_data_1
  • http://ip:8080/RestDataServer/api/goods_detail_data_2
  • http://ip:8080/RestDataServer/api/index_2_data
  • http://ip:8080/RestDataServer/api/index_data
  • http://ip:8080/RestDataServer/api/info
  • http://ip:8080/RestDataServer/api/order_list
  • http://ip:8080/RestDataServer/api/shop_cart_data
  • http://ip:8080/RestDataServer/api/sort_content_data_1
  • http://ip:8080/RestDataServer/api/sort_content_data_2
  • http://ip:8080/RestDataServer/api/sort_list_data
  • http://ip:8080/RestDataServer/api/user_profile

你可能感兴趣的:(自己搭建的restserver用安卓连接的时候报错:failed to connect to /127.0.0.1 (port 8080) after 60000ms: isConnected faile)