In all previous spring boot and spring cloud related posts, the creation of the spring boot project will be involved. There are many ways to create them, and we can build them either manually or through scaffolding.
In this article we will introduce the spring INITIALIZR tool in embedded IntelliJ, which, like the web-provided creation function, can help us quickly build a basic spring Boot/cloud project.
In the menu bar File
, select + New
= Project..
and we can see the CREATE Function window as shown. The Initial Service Url
address that points to is spring's official spring INITIALIZR tool address, so the project created here is actually based on its web tools.
Click Next
, wait a moment, we can see the Project Information window as shown here, where we can edit the engineering information we want to create. Among them, Type
we can change the type of project we want to build, such as Maven, Gradle; Language
You can choose: Java, Groovy, Kotlin.
Click Next
to go to the Select Spring boot version and the Dependency Management window. Our concern here is that it includes not only the dependencies in spring Boot Starter Poms, but also the various dependencies of Spring cloud.
Click Next
to enter the last few details about the physical storage of the project. Finally, click Finish
to complete the construction of the project.
IntelliJ Spring Initializr
is still based on the official web implementation, but the tool makes calls and builds the results directly into our local file system, making the entire build process smoother, without having experienced the spring boot/of this feature Cloud enthusiasts may wish to try this different way of building.
Source source technical support for complete projects 2147775633
Spring Cloud Spring Boot mybatis Distributed microservices Cloud Architecture (ii) Use spring INITIALIZR in IntelliJ to quickly build a spring Boot/cloud project