spring 整合dwr
web.xml
<!-- dwr配置 --> <servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class> org.directwebremoting.servlet.DwrServlet </servlet-class> <init-param> <param-name>config_core</param-name> <!-- 如果有多个用","分开 --> <param-value> /WEB-INF/classes/dwr/dwr_core.xml </param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping>
dwr_core.xml
<?xml version="1.0" encoding="UTF-8"?> <dwr> <allow> <create javascript="userglFacade" creator="spring"> <param name="beanName" value="test.userglFacadeImpl"/> <include method ="getUserList" /> <include method ="getUserName" /> </create> </allow> </dwr>
applicationContext_core.xml
<bean id="test.userglFacadeImpl" class="com.org.domain.test.impl.UserglFacadeImpl"/>
相关推荐
yupi0 2020-10-10
spring 2020-08-18
编程点滴 2020-07-29
幸运小侯子 2020-07-05
itjavashuai 2020-07-04
qingjiuquan 2020-06-29
shushan 2020-06-25
小鱿鱼 2020-06-22
咻pur慢 2020-06-18
melonjj 2020-06-17
qingjiuquan 2020-06-13
neweastsun 2020-06-05
小鱿鱼 2020-06-05
mxcsdn 2020-05-31
吾日五省我身 2020-05-27
牧场SZShepherd 2020-05-27
sweetgirl0 2020-05-14