2019独角兽企业重金招聘Python工程师标准>>>
return new SimpleAuthenticationInfo(user.getStr("username"), user.getStr("password"), getName());
第一个参数是用户名是可以生成cookie.如果是用户对象user 就会失败,
如果要传用户必须implements java.io.Serializable
2019独角兽企业重金招聘Python工程师标准>>>
return new SimpleAuthenticationInfo(user.getStr("username"), user.getStr("password"), getName());
第一个参数是用户名是可以生成cookie.如果是用户对象user 就会失败,
如果要传用户必须implements java.io.Serializable
转载于:https://my.oschina.net/momomo1987/blog/1529465