subject.login() 在try/catch中,輸入錯(cuò)誤密碼仍登陸成功,不在try/catch中就會(huì)報(bào)憑證不正確
????????subject.login(token); //????????try?{ //????????????subject.login(token); //????????}?catch?(AuthenticationException?e)?{ //????????????e.getMessage(); //????????} ????????return?"登錄成功"+name+password;
2018-09-27
已解決 catch 中沒有加return