我想创建一个单一的 .war,其中包含用于 Web GUI 的基于 Web 的 FORM 登录和基本身份验证(在本例中,用于 Web 服务接口。)
/index.html (unsecured welcome page)
+---/interactive (folder containing web pages using auth-method=FORM)
+---/service (servlet mapping for web service using auth-method=BASIC)
我看不到在 web.xml 文件中配置此类设置的方法。似乎 login-config 不能出现在 security-config 中,并且它只允许 .war 全局使用单个 auth-method。