intellij idea Chinese information online is relatively small, for eclipse project how to import intellij idea nor a complete explanation, here I am in the finishing, allow more people to join the intellij idea of the lineup.
Directly on the dry!
First, the idea to project into Eclipse
File - New - Module from Existing Sources ... Choose your eclipse project
This step is more critical, choose Eclipse, directly next next next finish it.
So far, the basic import project a success, but think it needs to run some of the relevant configuration jar and projects Tomcat idea of.
Second, the dependence (jar package) configuration
Open Project Structure (ctrl + alt + shift + s), select the item node configuration Modules
Choose your project, open the card selection Dependencies
The red font pack removal, direct multiple choice Click on the right to delete minus sign
Add rely on their own projects, click the plus sign on the right, select jars or directories ... select all the jar next eclipse lib
At this point, all of the dependencies added complete. idea does not automatically import the jar to help you add a new package, if you need to add a jar package will need to re-import dependence Dependencies.
Third, the framework configuration
Moduls or in operation, adding configure the framework right in the middle region projects.
More important is the Web this option, if you want to develop Web projects must include this on our Web root directory Web.xml and do a configuration
Using the idea of prompts is not very fun? But the foundation enjoyable is reflected in your well-equipped, so here try to improve your configuration (eg: Spring file)
After completing the above steps, careful students may find the "Web" Facet resources on the chart at the bottom are not included in an artifact
Here are some students do not know what the artifact is something, in fact, as long as you understand it to "generate something," the main thing is to configure your project in the evolution of a "product" for use Tomcat release.
Just click Create Artifact, idea generation will automatically give you a basic artifact.
The figure is the idea generated automatically give me the artifact, look at the bottom of the note to tell me the lack of ueditor.jar, it is because we do not have the right to jar package into the artifact, the direct selection on the right item to the right ddxd
put into output root
After the import is successful (no error, no wavy lines on the right side there is no jar), then look at the structure of our artifact and is not released in exactly the same Tomcat, so that you can add to the Tomcat up and running.
Four, Tomcat start
Look at the main interface of the tool bar icon, the icon is all your operating environment, where adding a Tomcat.
I am here to have Tomcat, so Tomcat do not need to choose a path, if not the first red box should not be content directly choose your own path like Tomcat. Tip: The best idea to provide a new Tomcat, idea does not publish its own program to the Tomcat webapps directory.
The following tips in the current Tomcat without any artifact, just click Fix (more will be prompted to choose a single direct add) you will be prompted to choose artifact, the artifact can we just choose the configuration.
Application context: access path is your project, idea here is empty by default, if it is empty you access address: HTTP: // localhost: 8080 / index.jsp , I visit here is with the project name:
http://localhost:8080/ddxd/index.jsp
OK, above is the basic project into eclipse idea, start your Tomcat enjoy it!