Spring配置DWR

    有个时候,我们希望将DWR配置到Spring中,通过Spring来统一管理DWR.

因为这样做的好处就是:你可以通过Spring给供前台调用的后台JAVA类注入任何的Bean.

最明显的表现就是:注入DataSource!

下面就是一段在Spring配置DWR的片段:
<bean id="ifdealerinputerror"                                       class="com.lzkj.dealerlogic.Ifdealerinputerror">
<dwr:remote javascript="show"></dwr:remote>
  <property name="ds">
    <ref bean="dataSource" />
  </property>
</bean>

你可能感兴趣的:(spring,bean,DWR,配置管理)