From 4a015c2e94c46f61b638a205f2f33675bc71d218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Cocula?= Date: Sat, 31 Dec 2016 02:23:32 +0100 Subject: [PATCH] Register of AdditionalPropertySourceConfigurer previously present in web.xml. --- .../main/java/org/libresonic/player/boot/Application.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java b/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java index dfb807f6..86f40157 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java +++ b/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java @@ -1,6 +1,7 @@ package org.libresonic.player.boot; import org.directwebremoting.servlet.DwrServlet; +import org.libresonic.player.spring.AdditionalPropertySourceConfigurer; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @@ -40,7 +41,9 @@ public class Application extends SpringBootServletInitializer { } public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication springApplication = new SpringApplication(Application.class); + springApplication.addInitializers(new AdditionalPropertySourceConfigurer()); + springApplication.run(args); } } \ No newline at end of file