For example:
web.xml:
DWR Annotations 使用 SpringCreator    <servlet>
DWR Annotations 使用 SpringCreator        
<servlet-name>dwr-invoker</servlet-name>
DWR Annotations 使用 SpringCreator        
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
DWR Annotations 使用 SpringCreator        
<init-param>
DWR Annotations 使用 SpringCreator            
<param-name>debug</param-name>
DWR Annotations 使用 SpringCreator            
<param-value>true</param-value>
DWR Annotations 使用 SpringCreator        
</init-param>
DWR Annotations 使用 SpringCreator        
<init-param>
DWR Annotations 使用 SpringCreator            
<param-name>classes</param-name>
DWR Annotations 使用 SpringCreator            
<param-value>
DWR Annotations 使用 SpringCreator                com.exjour.bean.people.UserBean,
DWR Annotations 使用 SpringCreator                com.exjour.bean.layer.WmsLayerBean,
DWR Annotations 使用 SpringCreator                com.exjour.web.handler.people.UserHandler,
DWR Annotations 使用 SpringCreator                com.exjour.web.handler.layer.WmsLayerHandler
DWR Annotations 使用 SpringCreator            
</param-value>
DWR Annotations 使用 SpringCreator        
</init-param>
DWR Annotations 使用 SpringCreator    
</servlet>
DWR Annotations 使用 SpringCreator

WmsLayerHandler.java:
 1DWR Annotations 使用 SpringCreatorpackage com.exjour.web.handler.layer;
 2DWR Annotations 使用 SpringCreator
 3DWR Annotations 使用 SpringCreatorimport java.util.List;
 4DWR Annotations 使用 SpringCreator
 5DWR Annotations 使用 SpringCreatorimport org.directwebremoting.annotations.Param;
 6DWR Annotations 使用 SpringCreatorimport org.directwebremoting.annotations.RemoteMethod;
 7DWR Annotations 使用 SpringCreatorimport org.directwebremoting.annotations.RemoteProxy;
 8DWR Annotations 使用 SpringCreatorimport org.directwebremoting.spring.SpringCreator;
 9DWR Annotations 使用 SpringCreator
10DWR Annotations 使用 SpringCreatorimport com.exjour.bean.layer.WmsLayerBean;
11DWR Annotations 使用 SpringCreatorimport com.exjour.service.layer.WmsLayerService;
12DWR Annotations 使用 SpringCreatorimport com.exjour.web.handler.BaseHandler;
13DWR Annotations 使用 SpringCreator
14DWR Annotations 使用 SpringCreator@RemoteProxy(creator = SpringCreator.class,
15DWR Annotations 使用 SpringCreator    creatorParams = @Param(name = "beanName", value = "wmsLayerHandler"))
16
其中绿色部分为Annotations,红色部分表示使用SpringCreator,粉色部分表示使用applicationContext中的"wmsLayerHandler" bean.

WmsLayerBean.java:
DWR Annotations 使用 SpringCreatorpackage com.exjour.bean.layer;
DWR Annotations 使用 SpringCreator
DWR Annotations 使用 SpringCreator
import org.directwebremoting.annotations.DataTransferObject;
DWR Annotations 使用 SpringCreator
import org.directwebremoting.annotations.RemoteProperty;
DWR Annotations 使用 SpringCreator
DWR Annotations 使用 SpringCreator@DataTransferObject

相关文章: