1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
context=
"http://www.springframework.org/schema/context"
5 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans
6 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context
8 http://www.springframework.org/schema/context/spring-context-2.5.xsd">
10 <import resource=
"classpath:/eu/etaxonomy/cdm/services.xml"/>
12 <import resource="classpath:/eu/etaxonomy/cdm/defaultSecurityContext.xml"/>
13 <import resource="classpath:/eu/etaxonomy/cdm/spelling.xml"/>
16 <!-- Overwrites the component-scan in services.xml -->
17 <context:component-scan base-package=
"eu/etaxonomy/cdm">
18 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.api\.service\.UserService"/>
19 <context:exclude-filter type=
"regex" expression=
"eu\.etaxonomy\.cdm\.persistence\.dao\.hibernate\.taxon\.TaxonAlternativeSpellingSuggestionParser"/>
20 </context:component-scan>
22 <import resource=
"classpath:/eu/etaxonomy/cdm/h2-datasource.xml" />
24 <!-- This configures default properties, which can overridden with the file specified by the location property -->
25 <!-- uncomment to enable hql logging
26 <bean id="hibernateProperties"
27 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
28 <property name="properties">
30 <prop key="hibernate.hbm2ddl.auto">create</prop>
31 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
32 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
33 <prop key="hibernate.show_sql">true</prop>
34 <prop key="hibernate.format_sql">true</prop>