ssh2??application.xml??????????????
???????????? ???????[ 2015/7/22 13:55:49 ] ??????????????????
????1.?????????????????????ssh????п???????????????????????????????
????<import resource="classpath:**/applicationContext-bms-sendxml-quartz.xml"/>
???????????????spring??????????????????
????2.????????????????????????spring bean?????????????????????
????<context:component-scan base-package="com.XX" />
????3.spring?????????????
????<tx:annotation-driven />
????4.???????????·????.properties??:
????<bean id="propertyConfigurer"
????class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
????<property name="locations">
????<list>
????<value>classpath:jdbc.properties</value>
????<value>classpath:sysconfig.properties</value>
????</list>
????</property>
????</bean>
????5.???????????
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass">
<value>${c3p0.jdbc.driverClass}</value>
</property>
<property name="jdbcUrl">
<value>${c3p0.jdbc.url}</value>
</property>
<property name="user">
<value>${c3p0.jdbc.username}</value>
</property>
<property name="password">
<value>${c3p0.jdbc.password}</value>
</property>
<!--????????????????????????minPoolSize??maxPoolSize???Default: 3 -->
<property name="initialPoolSize">
<value>${c3p0.jdbc.initialPoolSize}</value>
</property>
<!--??????б????С???????? -->
<property name="minPoolSize">
<value>${c3p0.jdbc.minPoolSize}</value>
</property>
<!--??????б?????????????Default: 15 -->
<property name="maxPoolSize">
<value>${c3p0.jdbc.maxPoolSize}</value>
</property>
<!--????????60????δ???????????????????0????????????Default: 0 -->
<property name="maxIdleTime">
<value>${c3p0.jdbc.maxIdleTime}</value>
</property>
<!--????????е????????????c3p0??????????????????Default: 3 -->
<property name="acquireIncrement">
<value>${c3p0.jdbc.acquireIncrement}</value>
</property>
<!--?60??????????????е?????????Default: 0 -->
<property name="idleConnectionTestPeriod">
<value>${c3p0.jdbc.idleConnectionTestPeriod}</value>
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<!-- ????????? -->
<prop key="hibernate.dialect">
${hibernate.dialect}
</prop>
<!-- ???Hibernate???????????????SQL??? -->
<prop key="hibernate.show_sql">false</prop>
<!-- ??SQL??????и??????????? -->
<prop key="hibernate.format_sql">false</prop>
</props>
</property>
<property name="packagesToScan">
<list>
<value>com.avit</value>
</list>
</property>
</bean>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11