我目前正在從事一個涉及 Spring (1.3.5)、Grails (2.4.3) 和 Maven 的專案。我正在嘗試<sec:ifSwitched>
在 GSP 中使用屬于 spring-security-core (2.0.0) 的標簽。我嘗試使用的標簽未正確呈現,而是在檢查頁面時呈現<sec:ifswitched>message</sec:ifswitched>
. 我已經檢查了 pom.xml 中的依賴關系,Maven 下載了資源。似乎我在 Spring 和 Grails 之間的配置級別上遺漏了一些東西,有什么想法嗎?
我試圖正確渲染標簽<sec:ifswitched>message</sec:ifswitched>
。我試圖更改專案的 pom.xml 和 .groovy 檔案。
uj5u.com熱心網友回復:
最后我們想出了一個解決方案:我們<Resource>grails.plugin.springsecurity.SpringSecurityTagLib</Resource>
在 grails.xml 檔案中添加,最后用注解標記了使用這些標簽的分類@TagLib
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/531601.html