1, the Project check out
(1) In the workspace new directory Ehome, respectively, Ehome-server, Ehome-link check out to this directory.
2. Import Project
(1) Open idea and import ehome-server.
Configure the JDK path, finish
This window or new window, whatever you want. The This window indicates that a new item is opened using the current Windows, and the previously opened item will be turned off. The new window indicates that the Project window will not be closed before it is opened. I have chosen this Window here.
This is the project after the import
Next export the Ehome-link, just in this interface, such as
So far, both Ehome-server and Ehome-link have been imported.
3. Configuration Items
(1) Project configuration
Configure the Jdk,java compiler version, and the project output location
(2) Modules configuration
Delete useless dependencies, Ehome-link and ehome-server all need to delete the useless dependency package
Importing dependent jar Packages
Ehome-server
Select the Ehome-server jar package
After the import interface is as follows
Import Ehome-link jar package, operation steps with Ehome-server
(3) Facets configuration
Select Ehome-link, configure the Web
Configure the Web. XML path for Ehome-server and Ehome-link, respectively
Configure Web Resoruce Directory for Ehome-server and Ehome-link, respectively
Before configuration, this path is obviously not
After configuration
(4) Configuration artifacts
Add two Web application exploded, named Ehome-server and Ehome-link, respectively
Select the Web output directory, both Ehome-server and Ehome-link can be selected to the Ehome-server's build directory
Put into output root
Then it looks like this.
Do this again for Ehome-link
The above configuration is complete, click Apply, OK, direct Click OK can also
4. Configuring Tomcat
(1) Copy a tomcat to the workspace
(2) Configuring Tomcat
Take a name.
Configuring the Tomcat Path
Choose tomcat that just copied past
Configuring Tomcat Boot Parameters
This means that it is opened with Google Chrome and the link will automatically jump to the ehome-server login screen when it starts.
Above, the Tomcat server configuration is complete, then the Tomcat Deployment
Configure application Context separately
Before configuration
After configuration
After this tomcat configuration is complete, click OK
5. Start running
(1) Start Tomcat
Start error ...
It looks like Ehome-link's configuration is not good enough.
Artifacts Output Path Modify
Click OK to start the project again
I'm relieved to see the following interface.
Ehome Project Server driven by Eclipse switch to idea