每日一则JavaWeb---Spring的ApplicationEventPublisher的作用
2017-08-30 19:10
387 查看
public interface ApplicationEventPublisher { /** * Notify all listeners registered with this application of an application * event. Events may be framework events (such as RequestHandledEvent) * or application-specific events. * @param event the event to publish * @see org.springframework.web.context.support.RequestHandledEvent */ void publishEvent(ApplicationEvent event); }去就是给ApplicationContext包裹一层来进行发布事件的
相关文章推荐
- 每日一则JavaWeb---spring 各个包的作用
- 每日一则JavaWeb---Spring的OncePerRequestFilter的作用
- 每日一则JavaWeb---Spring的MessageSource的作用
- 每日一则JavaWeb---Spring的ResourceLoader的作用
- 每日一则JavaWeb---spring中非Controller层使用HttpServletRequest两种解决方案
- 每日一则JavaWeb---spring的ApplicationContext
- 每日一则JavaWeb---Spring之ContextLoaderListener
- 每日一则JavaWeb---spring的<util:> 和<p:>
- Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
- 异常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
- Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
- 【转】java.lang.ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
- 在eclipse中运行spring web application时的异常: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- tomcat : Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException:
- 每日一则JavaWeb---ClassLoader原理解析
- Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener. ...nested exception is java.lang.NoSuchMethodError:
- java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setId
- 每日一则JavaWeb---SpringMVC的HiddenHttpMethodFilter过滤器
- 每日一则JavaWeb---实验分析Servlet、Filter 和 Listener 调用顺序、生命周期
- 使用Maven构建javaWeb项目时,启动tomcat出错:严重: Error configuring application listener of class org.springframewo