Packages to scan listed in spring boot application rather than in xml file.

master
Rémi Cocula 8 years ago
parent 4a015c2e94
commit edd5cc9dd1
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/boot/Application.java
  2. 3
      libresonic-main/src/main/resources/libresonic-servlet.xml

@ -11,7 +11,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
@SpringBootApplication(scanBasePackages = "org.libresonic.player.controller,org.libresonic.player.validator,org.libresonic.player.security")
@Configuration
@ImportResource(value = {"classpath:/applicationContext-service.xml",
"classpath:/applicationContext-cache.xml",

@ -13,9 +13,6 @@
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<mvc:annotation-driven />
<context:component-scan base-package="org.libresonic.player.controller,
org.libresonic.player.validator,
org.libresonic.player.security"/>
<bean id="wapController" class="org.libresonic.player.controller.WapController">
<property name="settingsService" ref="settingsService"/>

Loading…
Cancel
Save