1

我想创建一个单一的 .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。

4

1 回答 1

1

解决方案是创建两个 .war 子模块并将它们打包在一个 .ear 文件中。

于 2010-01-28T06:01:05.687 回答