Intellij idea Tomcat related

Source: Internet
Author: User

IntelliJ Create a Web project, start with Tomcat

http://blog.csdn.net/little__zm/article/details/19570535

IntelliJ Importing MyEclipse Web projects

http://zyjustin9.iteye.com/blog/2172712

Intellij idea to import Eclipse or MyEclipse Web projects

1. Checkout the remote project through the TORTOISESVN client and save it to the hard disk

Select previously checked out items, Import Module, 2.File

3. Enter the "Import module" window, select "Import module from external model", click on "Eclipse" to enter the project name, click Next

4. Keep the selection and content of "projects directory" and "Keep Project and Module files in" Intact, click Next

4. Tick the item and click Finish

5. Delete unused eclipse or myeclipe related files in the pop-up window, such as "Myeclipse_xfire_data_home", Apply and OK



5. Open "Project Structure" (Ctrl + Shift + Alt + S), "Modules", click on imported Items---delete invalid content with red error

6. Click "+", "Jars or directories", select all the jar packages under the Lib directory of the project.

( Note: If there are Servlet-api.jar and Jsp-api.jaR and other tomcat jar packages are not selected, to the Tomcat lib directory selection)

7. Click "Facets", "+", "Web", select the imported project----OK, automatically jump back to the "Modules" panel



8. In the "Modules" panel, modify "Deployment descriptors", delete the contents, click "+", select the Import Project's Web. XML, OK

9. Modify "Web Resource directories", delete the contents, click "+", select the imported project's Webroot directory, OK

10. Click "Fix", create artifacts, which appears in the lower right corner of the "Modules" panel, to automatically jump to the artifacts panel and create the artifact of the imported project



11. Modify the Import project's name, and modify the "Output directory" for Tomcat's WebApp directory, click the "fix" error prompt in the lower-right corner of the artifact, fix the error, Apply, OK

12. Deploy to Tomcat, run Tomcat and view running results in the browser

Intellij idea Tomcat related

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.