Spring InitializrIt is a web tool which is provided by Spring on official site. You can create Spring Boot project by providing project details. Select Maven project and dependencies. Fill other details and click on generate project. ![]() After clicking it asked for download project. ![]() Save project and extract it. Now import this project by using import option from the STS (Spring Tool Suite) IDE. Importing project ![]() Select project type in Maven. ![]() Select source project ![]() After finishing, our Spring Boot Project should look like this. ![]() It has a pom.xml file which contains all the dependencies and configuration for the project. It should look like this. // pom.xml It also generates a Java file in the src/main/java directory. This file has same name as you mentioned in artifact. The default created Java file is the below. // SpringBootExample3Application.java We can run this project by selecting Java Application from run options . After running, it produces the following output. ![]() Observe the line Started SpringBootExample3Application in 16.345 seconds (JVM running for 19.909). It shows that the Spring Boot application has started.
Next TopicSpring Boot CLI
|