Spring Boot tutorial: Get started with Spring Boot

Read more at:

$ sdk install springboot

The Spring Boot CLI has many powers, but we just want a simple demo application to start with:

$ spring init --group-id=com.infoworld --artifact-id=demo \
--package-name=com.infoworld.demo \
--build=maven --java-version=17 \
--dependency=web \
demo

Although this looks like a big chunk of code, it only defines the basics of a Java application—the group, artifact, and package names, as well as the Java version and build tool—followed by one Spring Boot dependency: web.

Web development with Spring Boot

This web dependency lets you do all the things required for a web application. In Spring Boot, this kind of dependency is known as a “starter”; in this case, it’s the spring-boot-starter-web starter. This web starter adds a single umbrella dependency (like Spring MVC) to the Maven POM. When Spring Boot sees this dependency, it will automatically add web development support, like a Tomcat server.

Source link

Multi-Function Air Blower: Blowing, suction, extraction, and even inflation

Leave a reply

Please enter your comment!
Please enter your name here