Add SpringBoot application.

master
Rémi Cocula 8 years ago
parent 33b7d81dd9
commit 2ad8ec005c
  1. 23
      libresonic-main/src/main/java/org/libresonic/player/boot/Application.java

@ -0,0 +1,23 @@
package org.libresonic.player.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
// Customize the application or call application.sources(...) to add sources
// Since our example is itself a @Configuration class (via @SpringBootApplication)
// we actually don't need to override this method.
return application;
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
Loading…
Cancel
Save