<dwr:controller id="dwrController" debug="true" />
<!-- 添加此bean可在项目中输入http://129.168.200.XXX/omm_spc/dwr测试远程方法-->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<!-- 不通过注解方式使用service的方法 -->
<!-- <bean id="operationMessageService" class="com.huawei.omm.service.system.impl.OperationMessageServiceImpl">-->
<!-- <dwr:remote javascript="operationMessageServiceImpl">-->
<!-- <dwr:include method="getOperMsgNameAndId" />-->
<!-- <dwr:include method="updateStatu" />-->
<!-- </dwr:remote>-->
<!-- </bean> -->
<!-- 注解方式配置DWR -->
<dwr:configuration>
<!-- 配置对象转换器将实体类转换为josn格式用于jsp页面-->
<!-- <dwr:convert type="bean" class="com.huawei.omm.domain.cases.Case"/>-->
</dwr:configuration>
<!-- spring容器中检查拥有@RemoteProxy 和 @RemoteMethod注解的类 -->
<dwr:annotation-config id="dwr_as" />
<!-- 要求DWR将util.js和engine.js映射到dwrController -->
<dwr:url-mapping />
<!-- 扫描读取注解加载的类 -->
<dwr:annotation-scan base-package="com.huawei.omm.service" scanDataTransferObject="true" scanRemoteProxy="true" />
<!-- 添加此bean可在项目中输入http://129.168.200.XXX/omm_spc/dwr测试远程方法-->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<!-- 不通过注解方式使用service的方法 -->
<!-- <bean id="operationMessageService" class="com.huawei.omm.service.system.impl.OperationMessageServiceImpl">-->
<!-- <dwr:remote javascript="operationMessageServiceImpl">-->
<!-- <dwr:include method="getOperMsgNameAndId" />-->
<!-- <dwr:include method="updateStatu" />-->
<!-- </dwr:remote>-->
<!-- </bean> -->
<!-- 注解方式配置DWR -->
<dwr:configuration>
<!-- 配置对象转换器将实体类转换为josn格式用于jsp页面-->
<!-- <dwr:convert type="bean" class="com.huawei.omm.domain.cases.Case"/>-->
</dwr:configuration>
<!-- spring容器中检查拥有@RemoteProxy 和 @RemoteMethod注解的类 -->
<dwr:annotation-config id="dwr_as" />
<!-- 要求DWR将util.js和engine.js映射到dwrController -->
<dwr:url-mapping />
<!-- 扫描读取注解加载的类 -->
<dwr:annotation-scan base-package="com.huawei.omm.service" scanDataTransferObject="true" scanRemoteProxy="true" />