Import eclipse JavaEE project

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43219615/article/details/100380965

Because a project needs, so I need to run the jsp server project, I am white in this area, recorded at the time of the solution.

  1. Install Tomcat. Official website to download .
  2. 点击window->Preference->server->Runtime Environment。
    Here Insert Picture Description
    Here Insert Picture Description
  3. Click add, select your version of Tomcat, then next. It may end up being given no say when clicked Finish xxx that directory to the directory administrator rights into one get another one on ok (This is a giant pit, QAQ)。
    Here Insert Picture Description
    Here Insert Picture Description
  4. If your window-> show view under this option if no server. To manually change the C: \ Program Files \ Apache Software Foundation \ Tomcat 8.5 \ server.xml configuration files conf. The server port change it, or else when running Java code or invalid port will complain of what to say.
    Here Insert Picture Description
    Here Insert Picture Description
  5. If your window-> server have this option, then the next show view, you can tune out directly to Server window, then right a new Server. The rest is simple.
    Here Insert Picture Description
  6. Turn off the Tomcat, then start the server in eclipse (if no server window directly Java code run on server right now).
    Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43219615/article/details/100380965