Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to import web projects in myeclipse into idea

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to import the web project in myeclipse to idea". In the daily operation, I believe that many people have doubts about how to import the web project in myeclipse to idea. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to import the web project in idea into myeclipse". Next, please follow the editor to study!

Update resources-update static resources, such as html,js,css and debug mode, will take effect immediately

Update classes and resources-update java,jsp and static resources (1. After java is modified, it will be compiled to .class, and then overwritten to the target/kao folder. In the case of IDE debug mode, it will take effect immediately. In IDE operation mode, it does not take effect immediately, and redeployed is required to take effect. When jsp is modified and accessed again, it will be automatically updated, recompiled to java.class and saved in tomcat's work directory. Since the modification and recompilation are detected only during access, both IDE run mode and IDEA debug mode take effect immediately. Just refresh the next page)

Redeployed-redeploy, publish to tomcat, do not restart tomcat, delete the original, and then republish

Restart server-restart tomcat.

1. Idea imports web project

1. Click Import Project. If you have created an idea project, click close project in File to come to this page.

Or below.

2. Select the path where the web project is located, and click OK:

3. Select import project from external model, select Eclipse, click next, and next to the end:

4. Click File- > Project Structure in the upper left corner, or click the icon on the toolbar directly, or use the shortcut key of the toolbar (ctrl + shift + Alt + s):

5. Select jdk in Project:

6. Configure the project structure in the Sources tab of the Modules item:

7. Configure the output path of the compiled file in path, select "Use module compile out path"-> set both Outputpath and Test output path to the classes folder:

8. Because you chose to import the eclipse project when you imported the project, the dependencies here have been handled automatically, and you only need to configure manually mainly to add the jar package of jdk and web-inf/lib. There is an error prompt with a red wavy line under the project name in the picture. Delete all the red items in the dependency. Select Module SDK as your jdk version, click the + sign on the right-> Select "1 JARS or directories..."

9. Select lib folder-> OK

10. Click Facets-> Click the + sign-> add Web module:

Select your project-> OK

11. Click the path under Web Resource Directory to modify Web Resource. The default directory for idea is web,web project is WebRoot

12.-> Artifacts- > + sign-> WebApplication:Exploded- > From Modules..

Select your own project:

Use the default settings-> Apply- > ok

2. Configure Tomcat container

1. Run-> Edit Configurations... in the menu bar

2.-> + sign-> Tomcat Server- > Select Local

3. Enter the server name in name, click "Configure..." after "Application Server", and select the locally installed tomcat directory-> OK under the pop-up Application Servers window Tomcat Home.

4, in the "Server" panel, uncheck "After Launch", set "HTTP port" and "JMX port" (default is OK), click Apply-> OK, (the small red cross on the tomcat icon in the list on the left is a hint of undeployed project, it will disappear after deploying the project).

Deploy and run the project on tomcat

1. Menu bar: Run-> Edit Configurations... (or via the toolbar)-> Select the tomcat7 you just created-> Select Deployment-> Click the "+" sign on the right-> Select Artifact

2. In the Server panel, change On 'update' action and On frame deactivation (these two options are available after tomcat has configured the project) to update classes and resources-> Apply

3. Run Tomcat

At this point, the study on "how to import the web project in myeclipse into idea" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report