Home›Java›Mods›Spring Boot Starter Spigot
ModsJava

Spring Boot Starter Spigot

Java mod listed for Minecraft 1.10–1.13. Download on the author's site.

⬇ Download on Spigot
Features
Getting started
Add the Spring boot starter to your project

Code (Text):

<dependency>
  <groupId>dev.alangomes</groupId>
  <artifactId>spring-boot-starter-spigot</artifactId>
  <version>0.9.0</version>
</dependency>
 
Create a class to configure the Spring boot application

Code (Text):

@SpringBootApplication(scanBasePackages = "me.test.testplugin")
public class Application {

}
 
Then create the plugin main class using the standard spring initialization, just adding the SpringSpigotInitializer initializer.

Code (Text):

public class ExamplePlugin extends JavaPlugin {

   private ConfigurableApplicationContext context;

   @Override
   @SneakyThrows
   public void onEnable() {
       saveDefaultConfig();
       ResourceLoader loader = new DefaultResourceLoader(getClassLoader());
       SpringApplication application = new SpringApplication(loader, Application.class);
       application.addInitializers(new SpringSpigotInitializer(this));
       context = application.run();
   }

   @Override
   public void onDisable() {
       context.close();
       context = null;
   }

}
 
And that's it! Your plugin is ready to use all features from Picocli and Spring Boot!

Read more at the project documentation
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Spring Boot Starter Spigot is a free Minecraft Java mod. Compatible with Minecraft 1.10, 1.11, 1.12, 1.13. Downloaded 467 times (via Spigot). Download it and open it directly in the game.

Explore more