A sample that stores and forwards HTTP data interfaces. Based on SP or mm billing or user registration data interface.

Source: Internet
Author: User

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.

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.