jjzjj

webApplicationContext

全部标签

spring security 没有找到 WebApplicationContext

我是SpringSecurity新手我有web.xmlcontextConfigLocation/WEB-INF/applicationContext-security.xmlspringorg.springframework.web.servlet.DispatcherServlet1spring*.htmlspringSecurityFilterChainorg.springframework.web.filter.DelegatingFilterProxyspringSecurityFilterChain/*index.htmlapplicationContext-securit

java - Tomcat 7 卡在 Initializing Spring root WebApplicationContext

我正在尝试将SpringWeb应用程序部署到Tomcat7.0.24,但它在启动时挂起,最后几行显示为INFO:Deployingwebapplicationarchive/usr/local/apps/tomcat-7.0.42/webapps/server-webapp.warApr4,20141:38:28PMorg.apache.catalina.core.ApplicationContextlogINFO:SpringWebApplicationInitializersdetectedonclasspath:[com.verical.marketplace.init.Mark

java - Tomcat 7 卡在 Initializing Spring root WebApplicationContext

我正在尝试将SpringWeb应用程序部署到Tomcat7.0.24,但它在启动时挂起,最后几行显示为INFO:Deployingwebapplicationarchive/usr/local/apps/tomcat-7.0.42/webapps/server-webapp.warApr4,20141:38:28PMorg.apache.catalina.core.ApplicationContextlogINFO:SpringWebApplicationInitializersdetectedonclasspath:[com.verical.marketplace.init.Mark

spring - 找不到 WebApplicationContext : no ContextLoaderListener registered?

我正在尝试创建一个简单的Spring3应用程序并拥有以下文件。请告诉我这个错误的原因下面是我的web.xmlSpring2index.jspdispatcherorg.springframework.web.servlet.DispatcherServlet0dispatcher/下面是我的index.jspInserttitlehereIndexPageGotoRegistrationPage下面是我的dispatcher-servlet.xml这是LoginController.javaimportorg.springframework.stereotype.Controller;

spring - 找不到 WebApplicationContext : no ContextLoaderListener registered?

我正在尝试创建一个简单的Spring3应用程序并拥有以下文件。请告诉我这个错误的原因下面是我的web.xmlSpring2index.jspdispatcherorg.springframework.web.servlet.DispatcherServlet0dispatcher/下面是我的index.jspInserttitlehereIndexPageGotoRegistrationPage下面是我的dispatcher-servlet.xml这是LoginController.javaimportorg.springframework.stereotype.Controller;

spring - 从 servlet 过滤器和标签访问 Spring bean

我可以使用在我的Servlet中访问SpringbeanWebApplicationContextspringContext=WebApplicationContextUtils.getWebApplicationContext(getServletContext());在Servlet的init方法中。我想知道servlet过滤器是否有与WebApplicationContext等效的功能?另外,是否可以在标签类中访问Springbean? 最佳答案 对于过滤器-使用Filter.init():publicvoidinit(Fil

spring - 从 servlet 过滤器和标签访问 Spring bean

我可以使用在我的Servlet中访问SpringbeanWebApplicationContextspringContext=WebApplicationContextUtils.getWebApplicationContext(getServletContext());在Servlet的init方法中。我想知道servlet过滤器是否有与WebApplicationContext等效的功能?另外,是否可以在标签类中访问Springbean? 最佳答案 对于过滤器-使用Filter.init():publicvoidinit(Fil

java - WebApplicationContext 未在 Servlet 上下文重新加载时关闭

当我关闭Tomcat时,我观察到SpringWebApplicationContext的正确关闭和清理。但是,当我重新部署基于Spring的WAR(通过将新WAR复制到webapps)时,不会发生正常关闭。由于所有随之而来的资源泄漏,这对我来说是个问题:org.apache.catalina.loader.WebappClassLoaderclearReferencesThreadsSEVERE:Thewebapplication[]appearstohavestartedathreadnamed[hz.hazelcast-swipe-instance.scheduled]buthas

spring - java.lang.IllegalStateException : No WebApplicationContext found: no ContextLoaderListener registered?

这是WEB-INF中的文件web.xmlcontextConfigLocation/WEB-INF/applicationContext.xmlLoginFilterglpi.filter.LoginFilterLoginFilter/index.jspcontextorg.springframework.web.context.ContextLoaderServlet1dispatcherorg.springframework.web.servlet.DispatcherServlet1actionorg.apache.struts.action.ActionServletconfi

spring - Spring MVC 中的 ApplicationContext 和 WebApplicationContext 有什么区别?

ApplicationContext和WebApplicationContext有什么区别?我知道WebApplicationContext用于面向SpringMVC架构的应用程序?我想知道ApplicationContext在MVC应用中有什么用?ApplicationContext中定义了什么样的bean? 最佳答案 Web应用程序上下文扩展了应用程序上下文,旨在使用标准javax.servlet.ServletContext所以它能够与容器通信。publicinterfaceWebApplicationContextexten