Saturday, July 22, 2017

Standalone SpringBoot Helloworld example

Step 1 - Run the below maven command. If maven is not installed in your machine please click here to check how to install maven.

mvn archetype:generate -DgroupId=com.javaxp -DartifactId=TestSpringboot -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false




Step 2 - Import the project in your IDE, Please see the sample codes below

pom.xml

App.java

HelloWorld.java

Output -