官术网_书友最值得收藏!

Time for action – running the project

As we already configured the Tomcat web server in our STS, let's use Tomcat to deploy and run our project:

  1. Right-click on your project from Package Explorer and navigate to Run As | Run on Server.
  2. A server selection window will appear with all the available servers listed; just select the server that we have configured, Tomcat v7.0.
  3. At the bottom of the window, you can see a checkbox with the caption that says Always use this server when running this project; select this checkbox and enter the Finish button, as shown in the following screenshot:
    Time for action – running the project

    Configuring the default server for a Spring MVC project

  4. Now you will see a web page that will show you a welcome message.
    Time for action – running the project
主站蜘蛛池模板: 柏乡县| 鄂托克前旗| 古丈县| 浦北县| 彰化县| 长沙市| 大厂| 松原市| 大悟县| 安康市| 嘉定区| 新泰市| 古交市| 明溪县| 南阳市| 荔波县| 镇宁| 榆林市| 疏勒县| 怀安县| 朝阳区| 敖汉旗| 密山市| 芦山县| 平果县| 湛江市| 含山县| 密云县| 丹寨县| 卫辉市| 宁城县| 富宁县| 安陆市| 万全县| 饶平县| 嘉兴市| 紫阳县| 随州市| 新昌县| 瑞丽市| 友谊县|