Register of AdditionalPropertySourceConfigurer previously present in web.xml.

master
Rémi Cocula 8 years ago
parent c28fb87a1f
commit 4a015c2e94
  1. 5
      libresonic-main/src/main/java/org/libresonic/player/boot/Application.java

@ -1,6 +1,7 @@
package org.libresonic.player.boot; package org.libresonic.player.boot;
import org.directwebremoting.servlet.DwrServlet; import org.directwebremoting.servlet.DwrServlet;
import org.libresonic.player.spring.AdditionalPropertySourceConfigurer;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
@ -40,7 +41,9 @@ public class Application extends SpringBootServletInitializer {
} }
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(Application.class, args); SpringApplication springApplication = new SpringApplication(Application.class);
springApplication.addInitializers(new AdditionalPropertySourceConfigurer());
springApplication.run(args);
} }
} }
Loading…
Cancel
Save