applicationcontext-dao.xml.svn-base

来自「google的开源项目」· SVN-BASE 代码 · 共 52 行

SVN-BASE
52
字号
<?xml version="1.0" encoding="UTF-8"?><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:tx="http://www.springframework.org/schema/tx"	xsi:schemaLocation="http://www.springframework.org/schema/beans 			http://www.springframework.org/schema/beans/spring-beans-2.5.xsd			http://www.springframework.org/schema/tx			http://www.springframework.org/schema/tx/spring-tx-2.5.xsd			http://www.springframework.org/schema/context			http://www.springframework.org/schema/context/spring-context-2.5.xsd">	<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">		<property name="driverClassName" value="org.postgresql.Driver" />		<property name="url" value="jdbc:postgresql://localhost/rsser" />		<property name="username" value="postgres" />		<property name="password" value="postgres" />	</bean>	<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">		<property name="dataSource">			<ref local="dataSource" />		</property>		<property name="hibernateProperties">			<props>				<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>				<prop key="hibernate.show_sql">false</prop>				<prop key="hibernate.format_sql">true</prop>				<prop key="hibernate.use_sql_comments">false</prop>				<prop key="hibernate.max_fetch_depth">3</prop>				<prop key="hibernate.generate_statistics">false</prop>				<prop key="hibernate.default_batch_fetch_size">4</prop>				<prop key="hibernate.jdbc.batch_versioned_data">false</prop>			</props>		</property>		<property name="annotatedClasses">			<list>				<value>com.google.code.rsser.model.Entry</value>				<value>com.google.code.rsser.model.Feed</value>				<value>com.google.code.rsser.model.User</value>			</list>		</property>	</bean>		<!-- TRANSACTIONS -->	<tx:annotation-driven transaction-manager="txManager"/>		<bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">		<property name="sessionFactory" ref="sessionFactory" />	</bean>	</beans>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?