以下是web.xml的代码截图
以下是bean.xml的配置:
true
<bean id="log4jInitializer" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod"><value>org.springframework.util.Log4jConfigurer.initLogging</value> </property>
<property name="arguments"><list><value>classpath:../conf/log4j.xml</value><value>2000</value></list></property>
</bean>
<!--
<bean id="RSAUtil" class="com.ailk.toptea.ebomc.tomcat.RSAUtil">
<property name="rSAKeyStore"><value>${catalina.home}/webapps/ROOT/WEB-INF/conf/RSAKey.txt</value></property>
</bean>
-->
<bean name="PasswdTask" class="com.ailk.toptea.ebomc.tomcat.user.PasswdTask" />
<bean id="jobDetail_PasswdTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="PasswdTask" />
<property name="targetMethod" value="start" />
</bean>
<bean id="cronTrigger_PasswdTask" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="jobDetail_PasswdTask" />
<property name="cronExpression">
<value>0 0/5 * * * ?</value>
</property>
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="cronTrigger_PasswdTask" />
</list>
</property>
</bean>
<!--scheme数据源配置 -->
<!-- 20150728 add by gongzf, begin... -->
<!--scheme数据源配置 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName"><value>${scheme.jdbc.driverClassName}</value></property>
<property name="url"><value>${scheme.jdbc.url}</value></property>
<property name="username"><value>${scheme.jdbc.username}</value></property>
<property name="password"><value>${scheme.jdbc.password}</value></property>
<property name="maxActive"><value>${scheme.db.maxActive}</value></property>
<property name="maxIdle"><value>${scheme.db.maxIdle}</value></property>
<property name="maxWait"><value>${scheme.db.maxWait}</value></property>
<property name="testOnBorrow" value="true"/>
<property name="testWhileIdle" value="true"/>
<property name="validationQuery" value="select 1 from dual"/>
</bean>
<bean id="DataBaseManager" class="com.ailk.toptea.ebomc.util.DataBaseManager">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="apiKey">
<value>${baidu.apiKey}</value>
</property>
<property name="secretKey">
<value>${baidu.secretKey}</value>
</property>
<property name="pushToken">
<value>${ebomc.pushToken}</value>
</property>
<property name="iOSUpdatePath">
<value>${ebomc.iOSUpdatePath}</value>
</property>
<property name="host">
<value>${apns.host}</value>
</property>
<property name="port">
<value>${apns.port}</value>
</property>
<property name="cerPath">
<value>${apns.cerPath}</value>
</property>
<property name="cerPwd">
<value>${apns.cerPwd}</value>
</property>
</bean>
<bean id="urlconfig" init-method="init" class="com.ailk.toptea.ebomc.util.URLConfig">
<property name="file">
<value>url.xml</value>
</property>
</bean>
以下是工程目录截图: