Spring 3.1.1 + Struts 2.3.1.2 + Hibernate 4.1 整合(SSH)(二)

2014-11-24 07:23:29 · 作者: · 浏览: 1
g-jee.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/tool
http://www.springframework.org/schema/tool/spring-tool.xsd"
default-lazy-init="true" default-autowire="byName">

class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">


classpath:/dataBaseInfo.properties







p:driverClass="${jdbc.driver}" p:jdbcUrl="${jdbc.url}" p:username="${jdbc.username}"
p:password="${jdbc.password}" p:idleConnectionTestPeriodInMinutes="${idleConnectionTestPeriodInMinutes}"
p:idleMaxAgeInMinutes="${idleMaxAgeInMinutes}"
p:maxConnectionsPerPartition="${maxConnectionsPerPartition}"
p:minConnectionsPerPartition="${minConnectionsPerPartition}"
p:partitionCount="${partitionCount}" p:acquireIncrement="${acquireIncrement}"
p:statementsCacheSize="${statementsCacheSize}"
p:disableConnectionTracking="${disableConnectionTracking}"
p:releaseHelperThreads="${releaseHelperThreads}" destroy-method="close" />

class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"
p:dataSource-ref="dataSource">



classpath:/com/eriloan/web/test/bo/





${hibernate.dialect}
${hibernate.show_sql}
${hibernate.format_sql}
${hibernate.use_sql_comments}
${hibernate.jdbc.batch_size}
${hibernate.max_fetch_depth}
${hibernate.jdbc.fetch_size}
${hibernate.cache.use_query_cache}
${hibernate.cache.provider_class}
${hibernate.order_updates}
${hibernate.query.factory_class}
${hibernate.cache.use_second_level_cache}
${hibernate.current_session_context_class}





class="org.springframework.orm.hibernate4.HibernateTransactionManager" />

class="org.springframework.transaction.interceptor.TransactionInterceptor"
p:transactionManager-ref="transactionManager">


PROPAGATION_REQUIRED,readOnly
PROPAGATION_REQUIRED,readOnly
PROPAGATION_REQUIRED,readOnly
PROPAGATION_REQUIRED,readOnly
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_R