报告 Spring Security 基于 XML 的上下文的问题:
- 未解析的 Bean 引用
- 缺少必需的标签或特性
- 属性类型不正确
enum
属性不一致
- 引用 Bean 的类型不正确
也报告以下问题:
- <https> 配置错误
- 带 '/**' 模式的 <http> 必须位于最后
- 不允许使用多个无 'pattern' 的 <http> 元素
- <http> 配置错误
- <user-service>
- 必须具有特性 'properties' 或 <user> 元素列表
- <ldap-server>
- 使用 'manager-dn' 时需要 'manager-password'
- 必须具有 'user-context-mapper-ref' 或 'user-details-class'
- <authentication-provider>
- <global-method-security>
- 'pre-post-annotations' 的值必须为 'enabled' 才能使用 <pre-post-annotation-handling>'
- 无法为 <protect-pointcut> 和 <intercept-url> 使用值为 'aspectj' 的 'mode'
- 'requires-channel' 属性只允许父 <http>
- <protect>
- 不建议将 <protect> 与 <global-method-security> 混用