About Spring Cloud
Spring Cloud provides developers with tools to quickly build distributed systems, including configuration management, service discovery, circuit breakers, routing, micro-proxies, event busses, global locks, decision-making campaigns, distributed sessions, and more. It runs in a simple environment and can run on a developer's computer. It is also stated that spring Cloud is based on springboot, so it is necessary to have a certain understanding of springboot in development.
In all previous spring boot related posts, the creation of the spring Boot project was involved. There are many ways to create them, either manually by Maven or through scaffolding, or by using the Spring INITIALIZR page tool, which is believed to have the most favorite and most skilled way to create.
In this article we will introduce the spring INITIALIZR tool in embedded IntelliJ, which, like the creation capabilities of the Web, can help us quickly build a basic spring cloud project.
Create a project
First step: In the menu bar, select File=new=project., we can see the Create features window as shown. The address that the initial Service URL points to is spring's official spring INITIALIZR tool address, so the project created here is actually based on its web tools.
Step Two: 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. Where type can change the type of project we want to build, such as Maven, Gradle; Language can choose from: Java, Groovy, Kotlin.
Step three: 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.
Fourth step: 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.
The spring INITIALIZR in IntelliJ is based on the official web implementation, but the tools are invoked and the results are built directly into our local file system, making the entire build process smoother, without experiencing the spring of this feature Cloud enthusiasts may wish to try this different way of building.
Written in the last
?
Quickly build a spring cloud project