Skip to content

Instantly share code, notes, and snippets.

@linux-china
Last active September 25, 2020 03:14
Show Gist options
  • Save linux-china/002a31c55fddb100ddb037f51ba88d03 to your computer and use it in GitHub Desktop.
Save linux-china/002a31c55fddb100ddb037f51ba88d03 to your computer and use it in GitHub Desktop.
Simple Spring Boot App
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.springframework.boot:spring-boot-starter:2.3.4.RELEASE
package demo;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Override
public void run(String... args) throws Exception {
System.out.println("This is a Test>>>>");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment