webx--Borrow Petstore Get started

Source: Internet
Author: User

Objective

This blog record to Ali internship of the first task –WEBX framework learning, will continue to update learning experience.

Run Petstore, configure the corresponding environment through the official website to the command line method, to run Petstore
    • Petstore is a classic case study of Java EE, download link
    • How does it work? See the official website for guidance: WEBX official website
git clone https://github.com/webx/citrus-sample.gitcd citrus-sample/petstoremvn clean installcd webmvn jetty:run-war

MAVEN is a huge project management tool, similar to C + + makefile, looking back at Maven's usage. The following is a summary of the issues encountered in performing the above:

Download configuration maven: Download maven link, note that the Maven run requires JDK, not just the JRE, otherwise it will prompt the corresponding error;
MVN Jetty:run-war, perform the error, see the post: MVN Jetty:run-war Error Resolution method
Jetty after running, access by the following link: http://localhost:8081/?home

Use Eclipse to run Petstore
    • Download Java EE Eclipse, unzip to use, this version of Eclipse comes with Maven, without configuration;
    • With the previous command line operation, a war package has been obtained and the war package can be imported into eclipse. The path to the war package is: D:\code\maven\citrus-sample\petstore\web\target\petstore.war.
    • Configure Tomcat to run the Petstore. First go to the official website to download a tomcat:http://tomcat.apache.org/download-80.cgi Configure the environment, you need to embed Tomcat into eclipse: Windows–preference-server Configuration in –runtime environment. See the Post: Tomcat embedded in Eclipse and running a JSP file
    • At this point, you can run Petstore in Eclipse.
    • Add, although the above way can run Petstore, but found through the war into the project, and can not be shorter *.java source code. Here, through the command line: MVN eclipse:eclipse, convert the MAVEN project into a project that eclipse can identify and import again in Eclipse, see post: Eclipse Import Maven Project

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

webx--Borrow Petstore Get started

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.