etms/WEB-INF/applicationContext.xml

55 lines
2.6 KiB
XML
Raw Normal View History

<?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:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<!-- <description>SnakerEngine配置 </description>-->
<context:component-scan base-package="com.etms.jcdp.conf" />
<context:component-scan base-package="com.etms.jcdp.web" />
<context:annotation-config />
<!--<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://10.55.148.33:3306/snaker-ning?useUnicode=true&amp;characterEncoding=utf-8" />-->
<!--<property name="username" value="root" />-->
<!--<property name="password" value="root" />-->
<!--<property name="maxIdle" value="5" />-->
<!--<property name="maxActive" value="40" />-->
<!--<property name="defaultAutoCommit" value="false" />-->
<!--<property name="timeBetweenEvictionRunsMillis" value="3600000" />-->
<!--<property name="minEvictableIdleTimeMillis" value="3600000" />-->
<!--</bean>-->
<bean name="mvcFilter" class="com.etms.mvc.DispatcherFilter">
<property name="dispatcher" ref="mvcDispatcher"/>
<property name="controllerProvider" ref="controllerProvider"/>
</bean>
<jaxws:endpoint id="etmsservice" implementor="com.etms.jcdp.web.services.ETMSServiceImpl" address="/etmsservice"/>
<!--<tx:annotation-driven/>-->
<!--<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">-->
<!--<property name="dataSource" ref="dataSource"/>-->
<!--</bean>-->
<!-- <import resource="classpath:oauth2-spring.xml" />-->
</beans>