2
web.xml 및 web-fragment.xml에 정의 된 ServletContextListeners의 실행 순서를 지정하는 방법이 있습니까? 첫 번째는 웹 fragment.xml웹 프래그먼트 및 web.xml의 서블릿 수신기 실행 순서
<listener>
<listener-class>com.example.RunFirst</listener-class>
</listener>
및
<listener>
<listener-class>com.example.RunSecond</listener-class>
</listener>
추가 내 응용 프로그램의 web.xml에 두 번째 하나의 선언 :
나는 내 응용 프로그램에서 두 개의 리스너를 내 웹 조각에는 다음 순서 요소가 포함되어 있습니다.
<ordering>
<before>
<others />
</before>
</ordering>
RunFirst 전에 RunSecond가 여전히 실행됩니다. 어떻게 내가이 주문을 바꿀 수 있는지 생각해?
web.xml에서 청취자가 정의 된 순서는 무엇입니까? –
RunFirst 리스너는 내 조각 – cpetry
의 web-fragment.xml에서만 정의되며 web.xml의 어느 부분에이 웹 조각을 추가합니까? –