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

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
主站蜘蛛池模板: 汤阴县| 沁源县| 耒阳市| 封丘县| 紫阳县| 霍山县| 扎兰屯市| 东乌| 长沙县| 喀喇| 山东| 中牟县| 旬阳县| 板桥市| 虞城县| 吉隆县| 蛟河市| 灵寿县| 涿鹿县| 奉贤区| 茌平县| 永嘉县| 灵石县| 汾阳市| 屏东市| 白河县| 什邡市| 资中县| 灵璧县| 扎兰屯市| 满城县| 麻江县| 鹤峰县| 石家庄市| 西吉县| 英德市| 临沂市| 正镶白旗| 鹿泉市| 天全县| 正定县|