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

Creating the project with Spring Initializr

We will create our backend project with Spring Intializr, that is a web-based tool that's used to create Spring Boot projects. Spring Intializr can be found at https://start.spring.io:

We will generate a Maven project with Java and the latest Spring Boot version. In the Group field, we will define our group ID, that will also become a base package in our Java project. In the Artifact field, we will define the artifact ID, that will also be the name of our project in Eclipse.

In the Dependencies section, we will select the starters and dependencies that are needed in our project. Spring Boot provides starter packages that simplify your Maven configuration. Spring Boot starters are actually a set of dependencies that you can include in your project. You can either type the keyword of the dependency into the search field, or you can see all available dependencies by clicking on the Switch to the full version link.  We will start our project by selecting two dependencies—Web and DevTools. You can type the dependencies into the search field or switch to the full version and see all the starter packages and dependencies available:

The DevTools dependency provides us with Spring Boot development tools, that provide automatic restart functionality. It makes development much faster because the application is automatically restarted when changes have been saved. The web starter pack is a base for full-stack development and provides embedded Tomcat.

Finally, you have to press the Generate Project button and that generates the project starter ZIP package for us.

主站蜘蛛池模板: 苍山县| 全南县| 长白| 恩平市| 崇阳县| 山东省| 呼图壁县| 象州县| 牙克石市| 库尔勒市| 衡东县| 兴隆县| 巴彦县| 水富县| 霍林郭勒市| 克什克腾旗| 五原县| 呼和浩特市| 郧西县| 凉城县| 太仓市| 临邑县| 岗巴县| 嘉善县| 南部县| 鄂伦春自治旗| 鲁甸县| 沙坪坝区| 永清县| 延吉市| 高州市| 竹溪县| 刚察县| 房山区| 和平区| 北京市| 彭山县| 桓台县| 五常市| 惠水县| 云梦县|