Turn---IntelliJ idea to introduce eclipse Web projects

Source: Internet
Author: User

  1. The usual, introduction, look at the picture

  2. Click to enter,

  3. After OK,

  4. And then just keep on next, just fine.

  5. When you are finished, click the button in the Red box

  6. After you click Enter, start setting up the project.

  7. Set modules, just enter the modules basically do not set, but you can set according to their needs, click Sources,test is the source code and test package, excluded is an exclusion package, I basically used to set those IDE configuration files.

    An important step is to click on the dependcies in the red box

  8. After clicking Dependcies, the shortcut key Alt+insert or find a green "+" number,

    After selecting the library, add Tomcat to my tomcat.

  9. Click on the navigation bar on the left Libraries,lib package is selected when the project is introduced.

  10. Click on the facets, the same is also the introduction of the project, click to enter will be the default.

  11. The most important step, artifacts,maven comrade must be very familiar with,

    This is supposed to be a war package, because the war package in idea doesn't hit under Tomcat's WebApps,

    The main thing is to have him, compile the time also have it, according to the picture reborn into a war package

  12. Here Eclipse chooses Webcontent,myeclipse is Webroot, I was here to make a mistake.

  13. Then OK. Next configure Tomcat, I am configured here, by default here is the click Configuration of Edit Configurations.

  14. Go in and configure Tomcat. The usual Alt+insert or green "+" sign.

  15. Click, the default this is this, according to individual needs change, next click Deployment, is to publish our project

  16. Add the new war package that we created earlier in artifacts.

  17. OK after adding finished. Then you can run Tomcat.

  18. OK, everything's okay, guys, they can start.

Ext.: http://my.oschina.net/u/1170781/blog/192731

Turn---IntelliJ idea to introduce eclipse Web projects

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.