0
有什麼方法可以自定義seam 3憑證對象嗎?如何自定義seam 3憑證?
我需要添加一個更多的屬性憑據(captcha)。我tryed下面的代碼:
@Named("credentials") @SessionScoped
public class Credentials extends CredentialsImpl {
private static final long serialVersionUID = -4377742708407292709L;
private String captcha;
public String getCaptcha() {
return captcha;
}
public void setCaptcha(String captcha) {
this.captcha = captcha;
}
}
但它與org.jboss.seam.security.CredentialsImpl @Named標註的衝突。我如何覆蓋憑據?