项目源码:https://gitee.com/tanwubo/jwt-spring-security-demo登录通过自定义的WxAppletAuthenticationFilter替换默认的UsernamePasswordAuthenticationFilter,在UsernamePasswordAuthenticationFilter中可任意定制自己的登录方式。用户认证需要结合JWT来实现用户认证,第一步登录成功后如何颁发token。publicclassCustomAuthenticationSuccessHandlerimplementsAuthenticationSuccessHandler{@AutowiredprivateJwtTo...
继续阅读 >