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

Creating a Spring Boot project using the STS IDE

Spring Tool Suite is one of most popular IDEs for Java developers to develop Spring-based applications. If you don't have STS in your machine, first download the latest version of STS from the following link:

http://spring.io/tools/sts

Let's create a new Spring Boot application in the STS by selecting the New | Spring Starter Project menu item from the File menu. Let's see the following screenshot; STS will present you with a dialog box:

As you can see in the screenshot, this dialog box asks for the same information as the web-based Spring Initializr. So, let's fill it in with the same information, whatever we filled in the web-based Spring Initializr with.

Let's click the Next button. It will present us with a second dialog box like the one shown in the following screenshot:

Let's click on the Finish button. It will present the project structure in your workspace with the same directory structure and default file as the web-based approach presented to you in the ZIP file.

You must be connected to the internet in order for it to work, because STS internally delegates to the Spring Initializr at http://start.spring.io to produce the project.

Now that the project has been imported into your workspace, let's create your application files, such as controllers.

主站蜘蛛池模板: 汨罗市| 社旗县| 云林县| 宣城市| 宁国市| 房山区| 岳阳县| 苏尼特右旗| 康定县| 钟祥市| 淅川县| 光泽县| 红安县| 文昌市| 望江县| 新龙县| 任丘市| 松原市| 昆山市| 义马市| 汕头市| 什邡市| 永善县| 佳木斯市| 垫江县| 邻水| 上蔡县| 渭源县| 萍乡市| 哈巴河县| 买车| 碌曲县| 清远市| 奉化市| 晴隆县| 绥德县| 靖江市| 万盛区| 宾阳县| 兴隆县| 淮北市|