Spring Security标签库不适用于JSF

问题描述 投票:0回答:1

您好,我正在启动一个新项目,我想在其中使用具有安全性和质素的springboot。我关注了这篇文章https://codenotfound.com/jsf-primefaces-spring-security-example.html,但做了一点改动,我不想使用JoinFaces。一切正常,除了spring sec taglib。xmlns:sec="http://www.springframework.org/security/tags现在,我不确定如何配置ServletContext,以使sec标签正常工作。这是Github回购,现在它是一个非常简单的项目,仅用于测试SB + SS + PF的组合https://github.com/p500plus/springboot-with-security-and-primefaces

spring-boot jsf spring-security
1个回答
0
投票

我以前有相同的场景,最后在项目中添加springsecurity.taglib.xml。从复制文件内容:https://docs.spring.io/autorepo/docs/webflow/2.3.x/reference/html/spring-faces.html#spring-faces-security-taglib

希望有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.