spring-config.context.ep-common-application-context.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xmlns:tx="http://www.springframework.org/schema/tx" 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/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"> <!-- Spring"s @Required and @Autowired, as well as JSR 250"s @PostConstruct, @PreDestroy and @Resource (if available), JAX-WS"s @WebServiceRef (if available), EJB 3"s @EJB (if available), and JPA"s @PersistenceContext and @PersistenceUnit (if available) --> <context:annotation-config base-package="io.github.jsoagger"/> <tx:annotation-driven transaction-manager="transactionManager"/> <!-- UTILITIES --> <bean id="InstallApplicationContainerTask" class="io.github.jsoagger.core.server.batch.common.importer.container.InstallApplicationContainerTask"/> <bean id="EntitiesMetadataLoader" class="io.github.jsoagger.core.server.EntitiesMetadataLoader" /> <bean id="ApplicationConfiguration" class="io.github.jsoagger.core.server.ServerProperties" init-method="loadVLConfiguration" lazy-init="false" primary="true" /> <bean id="ValidationErrorTranslator" class="io.github.jsoagger.core.server.utils.ValidationErrorTranslator" lazy-init="default" /> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <!-- one of the properties available; the maximum file size in bytes --> <property name="maxUploadSize" value="100000" /> </bean> <!-- i18n configured to store the user locale in its session with below mentioned configuration --> <bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"> <property name="paramName" value="lang" /> </bean> <bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver"> <property name="defaultLocale" value="fr" /> </bean> <bean id="GeneralMessageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="useCodeAsDefaultMessage" value="true" /> <property name="defaultEncoding" value="UTF-8" /> <property name="basenames"> <list> <value>/i18n/generalMessage</value> <value>/i18n/validationMessage</value> </list> </property> </bean> <bean id="SimpleCORSFilter" class="io.github.jsoagger.core.server.service.rest.utils.SimpleCORSFilter"/> </beans>