⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webapplicationcontextloader.java

📁 反向的AJAX。最大的特性是我们成为反向的Ajax。DWR1.x允许你用javascript异步的访问java代码。DWR2.0在这上允许你建立异步java访问javascript代码。 反向的Aj
💻 JAVA
字号:
package org.directwebremoting.guice.spring;import javax.servlet.ServletContext;import org.springframework.beans.factory.BeanFactory;import org.springframework.web.context.ContextLoader;import org.springframework.web.context.WebApplicationContext;import org.springframework.web.context.support.WebApplicationContextUtils;/** * A BeanFactory loader that loads a WebApplicationContext given a servlet context. */public class WebApplicationContextLoader implements BeanFactoryLoader {    public WebApplicationContextLoader(ServletContext servletContext)     {        this.servletContext = servletContext;    }    public BeanFactory loadBeanFactory()     {        new ContextLoader().initWebApplicationContext(servletContext);        return WebApplicationContextUtils.getWebApplicationContext(servletContext);    }        private final ServletContext servletContext;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -