Shiro:org.apache.shiro.authc.AuthenticationException

org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - starzou, rememberMe=false].  Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException)
	
		
           
               
             
               
               
               
           
         
	

如果user的密码是明文密码,但是如果这样设置

就等于说指定密码的加密方式是MD5,但是此时user的密码是明文密码,所以这样就会报错

解决的办法就是将user的密码用MD5加密,就要就不会有问题了

你可能感兴趣的:(Shiro)