1 |
9143c73e
|
a.babadshanjan
|
<?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:tx="http://www.springframework.org/schema/tx"
|
5 |
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
6 |
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
7 |
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
8 |
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
9 |
|
|
">
|
10 |
|
|
|
11 |
aa5e8a8d
|
Andreas Kohlbecker
|
<!--
|
12 |
|
|
see also /cdmlib-remote/src/main/resources/spy.properties in which P6Spy is configured
|
13 |
|
|
important properities are:
|
14 |
|
|
realdriver=com.mysql.jdbc.Driver
|
15 |
|
|
log4j.logger.p6spy=INFO,STDOUT
|
16 |
|
|
log4j.logger.p6spy=INFO, SQLPROFILER_CLIENT
|
17 |
|
|
log4j.appender.SQLPROFILER_CLIENT.RemoteHost =
|
18 |
|
|
|
19 |
|
|
you can use sqlprofiler as SQLPROFILER_CLIENT
|
20 |
|
|
-->
|
21 |
9143c73e
|
a.babadshanjan
|
<bean id="dataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
22 |
|
|
<property name="driverClassName" value="com.p6spy.engine.spy.P6SpyDriver"/>
|
23 |
|
|
<property name="username" value="${local.usr}"/>
|
24 |
|
|
<property name="password" value="${local.pwd}"/>
|
25 |
|
|
<property name="url" value="jdbc:mysql://${local.host}/cdm_local_cichorieae"/>
|
26 |
|
|
</bean>
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
<!-- This configures default properties, which can overridden with the file specified by the location property -->
|
30 |
|
|
<bean id="hibernateProperties"
|
31 |
|
|
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
32 |
|
|
<property name="properties">
|
33 |
|
|
<props>
|
34 |
|
|
<prop key="hibernate.hbm2ddl.auto">validate</prop>
|
35 |
|
|
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
|
36 |
|
|
<prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
|
37 |
|
|
<prop key="hibernate.show_sql">false</prop>
|
38 |
|
|
<prop key="hibernate.format_sql">false</prop>
|
39 |
|
|
</props>
|
40 |
|
|
</property>
|
41 |
|
|
</bean>
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
</beans>
|