Smith-Cruise / Spring-Boot-Shiro

Shiro基于SpringBoot +JWT搭建简单的restful服务
1.64k stars 504 forks source link

ShiroRealm中抛出的异常在ExceptionController中捕获到的ShiroException中其Message 被改写了 #36

Closed zdy1999 closed 6 years ago

zdy1999 commented 6 years ago

ShiroRealm中抛出的异常throw new AuthenticationException ("登录凭证已过期,请重新登录!"); 在ExceptionController中捕获到的ShiroException中之前抛出的AuthenticationException其Message 被改写了

Smith-Cruise commented 6 years ago

被改写成了什么,或者你可以试试捕获AuthenticationException