Sprint Boot

Spring Boot is a convention-over-configuration solution for creating stand-alone production-grade Spring-based applications.


Spring Boot Quickstart Basically you go to https://start.spring.io/ select what you want to have and you can download a zip file with a ready to be used project. The zip file will contain a Shellscript mvnw to run it

./mvnw spring-boot:run

If you have several java versions installed and need to choose one do this before you start it (replace with the correct path on your system)

export JAVA_HOME="/usr/lib/jvm/jdk-14"

You can just import it in Eclipse as any other Maven project (as long as you had it created as a Maven project).

The main class looks like this

public class FooApplication implements ApplicationRunner {
        public static void main(String[] args) {
                SpringApplication.run(FooApplication.class, args);             

        public void run(ApplicationArguments args) throws Exception {