mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
|
|
|
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
|
|
<property name="url" value="jdbc:mysql://www.example.com:3306/test" />
|
|
<property name="username" value="root" />
|
|
<property name="password" value="mysecret" />
|
|
<property name="initialSize" value="30" />
|
|
|
|
<property name="maxActive" value="500" />
|
|
<property name="maxIdle" value="2" />
|
|
<property name="minIdle" value="1" />
|
|
</bean>
|
|
|
|
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
|
<property name="dataSource" ref="dataSource" />
|
|
|
|
<property name="annotatedClasses">
|
|
<list>
|
|
<value>com.example.entity.Users</value>
|
|
</list>
|
|
</property>
|
|
|
|
<property name="hibernateProperties">
|
|
<value>
|
|
hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
|
hibernate.hbm2ddl.auto=update
|
|
hibernate.show_sql=true
|
|
hibernate.cache.use_second_level_cache=false
|
|
hibernate.cache.provider_class=org.hibernate.cache.internal.NoCacheProvider
|
|
hibernate.generate_statistics=true
|
|
</value>
|
|
</property>
|
|
</bean>
|
|
</beans>
|