创建一个新的Spring Boot项目

Requirements

  • 浏览器IDE Intellij,Netbeans或Eclipse稳定的互联网连接

对于本文,我们将仅关注两个IDE(Intellij和Netbeans)。

For Netbeans IDE

Step 1: Open your Browser and Navigate to Spring Initializr

创建一个新的Spring Boot项目

Step 2: Select your language

Step 3: Select the version of Spring Boot

Step 4: Select Dependencies

使用的依赖项取决于项目。 根据项目选择。 例如,使用Html和CSS的简单注册表单将需要以下主要依赖性

  • Spring Web Starter胸腺春季安全Spring Data JPA

创建一个新的Spring Boot项目

Step 5: Click Generate the Project at the Bottom of the page.

这将下载一个ZIP文件,其中包含刚选择的依赖项。

创建一个新的Spring Boot项目

Step 6: Import the ZIP file in Netbeans

创建一个新的Spring Boot项目

Step 7: Build the Project with dependencies

创建一个新的Spring Boot项目

这将需要一些时间。您必须具有稳定的Internet连接

Once the downloads are done you are good to go!



For IDEA Intellij IDE

Step 1: Create a new Project in Intellij

创建一个新的Spring Boot项目

Step 2: Create a new Spring Initializr project

创建一个新的Spring Boot项目

Step 3: Select language and other Metadata

就像在Spring Initializr网站上一样,它也有要求。

创建一个新的Spring Boot项目

Step 4: Select Dependencies required

创建一个新的Spring Boot项目

创建一个新的Spring Boot项目

Once the downloads are done you are good to go

您需要稳定的Internet连接这将需要几分钟,具体取决于您的Internet速度

Happy Coding!!

from: https://dev.to//kvngston/creating-a-new-spring-boot-project-6l2