|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
xsi:schemaLocation="
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
|
|
http://www.springframework.org/schema/context
|
|
|
|
http://www.springframework.org/schema/context/spring-context.xsd
|
|
|
|
http://www.springframework.org/schema/mvc
|
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
|
|
|
|
|
|
|
<mvc:annotation-driven />
|
|
|
|
<context:component-scan base-package="org.airsonic.player.controller,
|
|
|
|
org.airsonic.player.validator,
|
|
|
|
org.airsonic.player.security"/>
|
|
|
|
|
|
|
|
|
|
|
|
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
|
|
|
<property name="alwaysUseFullPath" value="true"/>
|
|
|
|
<property name="mappings">
|
|
|
|
<props>
|
|
|
|
<prop key="/podcast/**">podcastController</prop>
|
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
|
|
|
|
<property name="basename" value="org.airsonic.player.i18n.ResourceBundle"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="themeSource" class="org.airsonic.player.theme.CustomThemeSource">
|
|
|
|
<property name="basenamePrefix" value="org.airsonic.player.theme."/>
|
|
|
|
<property name="settingsService" ref="settingsService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="themeResolver" class="org.airsonic.player.theme.CustomThemeResolver">
|
|
|
|
<property name="securityService" ref="securityService"/>
|
|
|
|
<property name="settingsService" ref="settingsService"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
|
|
|
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
|
|
|
|
<property name="prefix" value="/WEB-INF/jsp/"/>
|
|
|
|
<property name="suffix" value=".jsp"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean class="org.airsonic.player.spring.LoggingExceptionResolver" />
|
|
|
|
|
|
|
|
</beans>
|