我使用spring security,spring,hibernate和jsf身份验证正常工作,但它总是将我重定向到页面home.jsf
我希望在身份验证后管理用户的访问权限
我希望在身份验证后管理用户的访问权限
如果authority = ROLE_ADMIN重定向ves homeadmin.jsf
如果authority = ROLE_RH重定向ves homerh.jsf
如果authority = ROLE_EXCUTIVE重定向ves homeex.jsf
如果authority = ROLE_MANAGER重定向ves homem.jsf
如果authority = ROLE_GP重定向ves homegp.jsf
Collaborateur表中的autority字段
Colaborateur类是
private Integer idColaborateur;
private Rolecol rolecol;
private String matriculeColaborateur;
private String nomColaborateur;
private String prenomColaborateur;
private String mailColaborateur;
private String pwdColaboratuer;
private String loginColaborateur;
private String adresseColaborateur;
private Boolean flgSuspendu;
private Set<HistoriqueNoteObjctif> historiqueNoteObjctifs = new HashSet<HistoriqueNoteObjctif>(
0);
private Set<Note> notes = new HashSet<Note>(0);
private Set<NoteObjectifs> noteObjectifses = new HashSet<NoteObjectifs>(0);
private Set<CompagneDevaluation> compagneDevaluations = new …Run Code Online (Sandbox Code Playgroud)