Packages to scan listed in spring boot application rather than in xml file.
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user