Stream application Development
1. The front end is an HTML page written by Hbuilder, and the UI control is MUI;
2. Backstage with eclipse developed by the servlet to do the controller;
3. Ajax with MUI for front and rear interaction.
Choose to run the written mobile app on Android (my phone is Android) in Hbuilder, write the landing page on the front end, use Eclipse to write in the background, adopt the MVC design pattern layering design, including the Userdao layer connecting database and operation database, model layer user, The control layer servlet is named Useraction, and requests from clients are handled by servlet interception, which includes adding users, querying user names for availability, and so on.
For Ajax asynchronous access, you need to explicitly url:ip:port/the background project name/useraction? Action=login,
IP determination: ipconfig
The port number determines:
Write a index.jsp in the background, configure Tomcat, run in the background index.jsp will automatically open the built-in browser, you can see the server port number,
Background Project name:
Cmccdemo
The above key points must be configured, otherwise you will not be able to access the background.
H5+app front-end background Ajax interaction Summary