jojozhai / security

586 stars 488 forks source link

在代码中配置了JdbcUsersConnectionRepository但是实际没有生效 #3

Closed zion223 closed 6 years ago

zion223 commented 6 years ago

在SocialConfig中配置了JdbcUsersConnectionRepository,但是运行时SocialAuthenticationProvider中的UsersConnectionRepositor是InMemoryUsersConnectionRepository!

zion223 commented 6 years ago

toUserId()方法返回的一直是null

xiaodaoM commented 6 years ago

我也是.请问你解决了吗

xiaodaoM commented 6 years ago

hi

longfeizheng commented 6 years ago

把写在SocialConfig类中的getUsersConnectionRepository方法放置到QQAuthConfig中即可。

zion223 commented 6 years ago

@longfeizheng 感谢 解决了