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

Deploying our project

We successfully created the project in the last section, so you might be curious to know what would happen if we run our project now. As our project is a web project, we need a web server to run it.

Time for action - running the project

As we have 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 v8.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:

    Configuring the default server for a Spring MVC project

  4. Now you will see a web page that will show you a welcome message.

    Showing the welcome page of the web store

主站蜘蛛池模板: 福海县| 松溪县| 吴川市| 涿鹿县| 武平县| 隆子县| 叶城县| 旅游| 岗巴县| 江阴市| 绥滨县| 云南省| 会同县| 密山市| 青川县| 宜昌市| 木兰县| 奇台县| 宁津县| 万全县| 肃北| 项城市| 天峻县| 新乡市| 阿拉善盟| 大姚县| 无锡市| 南昌市| 万宁市| 丰原市| 拜泉县| 瓦房店市| 富顺县| 正定县| 南京市| 玛纳斯县| 扬州市| 克山县| 新河县| 黔西| 阿拉善左旗|