我正在管理一个 Spring MVC 5 应用程序,安全性(以及其他 API)基于 HDIV。
上周我做了一些更改,但 HDIV 安全性不再起作用。
由于更改,_HDIV_STATE_
没有出现在 URL 中。URL是用spring生成的:url taglib (taglib uri="http://www.springframework.org/tags" prefix="spring")
我引用HDIV 文档:
如果您使用的是3.1之前的Spring MVC版本,则需要引入一个额外的步骤,根据具体版本将Spring MVC tlds替换为Hdiv tlds。以下示例显示了 Spring MVC 3.0.4 的代码:
<jsp-config>
<taglib>
<taglib-uri>http://www.springframework.org/tags</taglib-uri>
<taglib-location>/WEB-INF/tlds/hdiv-spring.tld</taglib-location>
</taglib>
</jsp-config>
我的想法是通过www.hdiv.org/jsp/jstl/core taglib 库强制包装www.springframework.org/tags taglib库,即使我使用 Spring MVC 的第五个版本。
有谁知道我在哪里可以找到 hdiv-spring.tld 文件(https://github.com/hdiv/hdiv中没有)?或者也许 HDIV 层如何/在何处进行自动包装,具体取决于 Spring MVC 版本?