티스토리 뷰


ContextLoaderListener()

Create a new ContextLoaderListener that will create a web application context based on the "contextClass" and "contextConfigLocation" servlet context-params.


ContextLoaderListener(WebApplicationContext context)

Create a new ContextLoaderListener with the given application context.



Method Summary

1. contextDestroyed(ServletContextEvent event)

Close the root web application context.


2. contextInitialized(ServletContextEvent event)

Initialize the root web application context.


Detail

Public ContextLoaderListener()

Create a new ContextLoaderListener that will create a web application context based on the "contextClass" and "contextConfigLocation" servlet context-params. See ContextLoader superclass documentation for details on default values for each.

This constructor is typically used when declaring ContextLoaderListener as a <listener> within web.xml, where a no-arg constructor is required.


The created application context will be registered into the ServletContext under the attribute name WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE and the Spring application context will be closed when the contextDestroyed(javax.servlet.ServletContextEvent) lifecycle method is invoked on this listener.



etc: https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/context/ContextLoaderListener.html





'eGovframe > eGov-frame classes' 카테고리의 다른 글

Spring 내장 HSQL DB  (0) 2018.04.05
egovframework.rte.ptl.mvc.filter.HTMLTagFilter  (0) 2018.04.02
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함