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

Creating a project with Spring Initializr

We will create our backend project with Spring Initializr, which is a web-based tool that's used to create Spring Boot projects. Spring Initializr 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, which will also become a base package in our Java project. In the Artifact field, we will define the artifact ID, which 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 the available dependencies by clicking on the See all 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 the Spring Boot development tools, which 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 click on the Generate Project button, which generates the project starter ZIP package for us.

主站蜘蛛池模板: 宁都县| 苏尼特右旗| 黄石市| 淮南市| 温州市| 沛县| 湘阴县| 松阳县| 洪雅县| 榆社县| 田林县| 罗甸县| 固始县| 鲁甸县| 菏泽市| 黄平县| 桃源县| 麦盖提县| 阿城市| 彭州市| 临城县| 渭源县| 苏州市| 东明县| 余姚市| 曲周县| 双牌县| 木兰县| 香港 | 名山县| 大理市| 邢台市| 静乐县| 高密市| 潢川县| 南召县| 雅安市| 大理市| 鄯善县| 沾益县| 朝阳区|