10
WildFly中安全領域和安全領域之間的主要區別是什麼?WildFly中安全領域和安全領域之間的區別
standalone.xml
<security-domain name="foo">
<authentication>
<login-module code="..." flag="...">
</login-module>
</authentication>
</security-domain>
和
<security-realm name="foo">
<authentication>
<local default-user="..." allowed-users="..."
skip-group-loading="..."/>
<properties path="..." relative-to="..."/>
</authentication>
<authorization>
<properties path="..." relative-to="..."/>
</authorization>
</security-realm>
在應用程序的web.xml中,您可以爲login-config定義領域名稱。但是,如果我的應用程序使用安全域,那麼web.xml中指定的領域名稱是做什麼的? – user1884155
web.xml中的領域名稱只是一個呈現給客戶端的名稱,可以向您的應用程序進行身份驗證。在BASIC認證期間,您可以在瀏覽器認證對話框中看到該名稱。 – kwart