Download Https://github.com/soybean217/demo-forwardingIntroduction Introduction
A demo for store and forwarding HTTP data. Base SP or MM fee or user register interface.
A sample that stores and forwards HTTP data interfaces. Based on SP or mm billing or user registration data interface.
Structure structure
Demo-base, Public Function pack.
Demo-interface,http Data receiving storage interface engineering. Interface Web project.
Demo-admin, Statistical Report project. Statistics Web project.
DEMO-MM,MM Data Interface Engineering. Web Interface Web project.
Require Requirements
Eclipse MAVEN MySQL
Usagetomcat Configure
Import existing project to eclipse.
About Project Properties:check Java build path. Perhaps need modify Pom.xml to refresh maven update. Perhaps need add Dynamic Web Module 3.0 and above Java 1.6 to Project Facets.
Confirm Deployment Assembly correct.
Import a project that already exists in eclipse.
Project Property Modification: Check that the Java build path is correct. You might be able to activate Maven by modifying the pom.xml or adding spaces. You may need to add dynamic Web Module 3.0 and Java 1.6 support in project facets.
Verify that the deployment assembly is configured correctly.
/SRC-Web-inf/classes
/webroot (JSP file dictionary default perhaps webcontent)
Demo-base-Web-inf/classes/base.jar
Maven Dependencies-Web-inf/lib
MySQL Configure
Prepare MySQL database with Database.sql and grant user in Src/config.properties
Prepare MySQL database, structure in Database.sql file, account data is configured in Config.properties.
Test sample
Admin project:http://site:port/demo-admin/demo/login.jsp
Username:[email protected] password:1
Interface sample:http://site:port/demo-interface/demo.jsp?mobile=11&cmd=11&ret=1
It'll be the store in table receives. Forwarding URL can modify is in demo.jsp, and structure is In/demo-base/src/main/java/org/demo/service/httpsend.java.
The received data will be stored in the receives table, the URL of the forwarding data is configured in the demo.jsp file, the forwarding data structure (parameter name) is/demo-base/src/main/java/org/demo/service/ The Httpsend.java file.
License
Apache
Download https://github.com/soybean217/demo-forwarding
A sample that stores and forwards HTTP data interfaces. Based on SP or mm billing or user registration data interface.