About the problems and solutions of Java server providing request interface to mobile phone (anduroid && Ios)

Source: Internet
Author: User

The background is the server project from 20 server to 16 servers, mobile phone through the IP of the 16 server to send requests to the project interface to obtain data


The following are the problems that arise

1. The picture can upload, but the picture cannot show, the path is not right


Workaround: Modify the image upload configuration file address or the Database configuration table


2. The handset side request does not have the service side the interface, the request port is not right


Workaround: First determine what protocol the server needs to send on the phone, Https or HTTP. If it's HTTPS, go to the server to see what the Tomcat configuration https is, then add the port after the IP request


3. The server can accept the request sent by the mobile phone, but the program goes to a certain code, cannot continue to execute


WORKAROUND: But the parameter handset side does not receive, returns the connection timeout. First of all, determine whether this line of code is operating the database code, execution to this line of code. This time should pay attention to, carefully check is not the code has problems, once found that the code is not a problem. So that is the project access to the database user rights, to see if this user has all the permissions.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.