The development of Javaweb under the I-jetty of April 2, 2015 (II.)

Source: Internet
Author: User

In the previous blog post, I briefly introduced the hello example in the next I-jetty, and with this hello example, we can imitate him to write a program that belongs to us. In order to save trouble, I directly under the Example-webapps-parent, a new MAVEN module, after the establishment, it should be noted that the MAVEN project Java files will be lost, it is strange why, but the new folder, came out, unable to spit out the slot--

OK, the Java folder is out, we can be in this directory to devolve our logic code, in SRC in the WebApps to add the JSP page we need and modify the Web. xml file, according to the General Javaweb development is good. To make a point, in order for your Web project to be compiled and not have the following version number name, you can add the finalname tag under the build in the Pom.xml file, so that the final compiled folder is the name of its own definition.

Compile: The compilation process may be a bit frustrating, this time, to see the error log, looking for the cause of the error, it is very small white problem

Deployment: Deployment Be careful, if you do not define finalname in the build, then copy the folder directly, but if you define the Finalname, then first you need to copy the version number folder under the Lib directory under the Classes.zip to This is the key to the Lib directory under the custom directory. Deployment is OK.

Using Android as a server, after all, immature, pit too much, we still do not step as well.

The development of Javaweb under the I-jetty of April 2, 2015 (II.)

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.