JAVA Web Novice Prone to the misunderstanding (all of them do miss and pro-test effective)

Source: Internet
Author: User
Tags java web

One: The prerequisites for configuring Tomcat in Eclipse:

1. Download a JDK, configure the environment variables;

2. Download one of the installed versions of Tomcat;

3. Download the appropriate eclipse;

Two: about how to configure the book on the internet I only say a few details

1:

At Target runtime this must be selected for the version of Tomcat or the system is empty by default, and after creating the servlet, there is no existing interface.

2. If you want to manually configure the virtual path in Web. XML, be sure to remove the virtual path given by the system (for example://@WebServlet ("/xxxxxx")). Otherwise, Tomcat will not be able to run. It's very important that this place blew my mind.

3. If you want to introduce dynamic Web projects from other workspaces into your workspace with import, there may be many warnings such as:

The solution is to place the mouse over the warning point and click Fix Project Setup. You can run it.

After that, you can run the servlet, but you don't have a workspace. The engineering solution is to right-click on the->refactor->move->use in front of the default location and then confirm that it is resolved.

JAVA Web Novice Prone to the misunderstanding (all of them do miss and pro-test effective)

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.