Web 應用程序不應試圖關閉自身的容器。
讓 Web 應用程序試圖關閉自身的容器并不是什么好主意。調用 System.exit() 的操作可能包含在 leftover debug code 中,或者包含在從非 J2EE 應用程序導入的代碼中。
[1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A9 Application Denial of Service
[2] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP6080 CAT II
[3] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP6080 CAT II
[4] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 382
[5] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.9