Idea import Eclipse project and deploy run full step (forward)

Source: Internet
Author: User
Tags tomcat server

Let's start by saying that project in idea is the equivalent of workspace in Eclipse, and that modules in idea is equivalent to project in Eclipse.

1. File-->import Project in the popup dialog box, select the item to import

2. Select OK, select Import Project from External Model in the popup dialog box and select Eclipse below

3, click Next, always click to finish on the line.

4. Some errors will occur after loading successfully

Click Fix It

The above 2 cancellations are all right.

5, click on the project name, and press F4 to build

5, eject, select dependencies

6. Select your own module SDK and remove the red

7. Then select Apply in the lower right corner

8. Select facets, add Web configuration file

9, click on the + sign, select the Web

10. Select the project name and click OK

11. Select the small pencil on the right and edit the path

12. Modify the project path to Web. XML under Web-info

13, the following for the JSP, CSS and other points to the path, the default is the project under the Web folder, as long as the CSS, JSP and other files copied to the Web folder on the line,

Or click the plus sign on the right to add the webcontent path,

13, if there is spring, etc. also follow the above steps to add can

14, in the choice of the right artifacts

15, click on the + number, in the selection of Web application:exploded---->from Modules,

Click OK

16. Click the lower triangle in the red box of the toolbar, select Edit Configuration,

17. Click the + sign to select Tomcat Server---->local,

18, choose Deployment,

19, click on the right of the + number, select Artifact,

20, choose Artifact Name, click OK, the toolbar will appear Tomcat,

Click Run to start the project

PS: About the Chinese garbled problem: If the code in Eclipse encoded in Utf-8,idea is also modified to Utf-8

Idea import Eclipse project and deploy run full step (forward)

Related Article

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.