
$ sdk set up springboot
The Spring Boot CLI has many powers, however we simply desire a easy demo utility to begin with:
$ spring init --group-id=com.infoworld --artifact-id=demo
--package-name=com.infoworld.demo
--build=maven --java-version=17
--dependency=net
demo
Though this appears like a giant chunk of code, it solely defines the fundamentals of a Java utility—the group, artifact, and package deal names, in addition to the Java model and construct instrument—adopted by one Spring Boot dependency: net.
Internet improvement with Spring Boot
This net dependency permits you to do all of the issues required for an internet utility. In Spring Boot, this type of dependency is named a “starter”; on this case, it’s the spring-boot-starter-web starter. This net starter provides a single umbrella dependency (like Spring MVC) to the Maven POM. When Spring Boot sees this dependency, it’s going to routinely add net improvement help, like a Tomcat server.

