Login abnormal processing section springboot

1. Configure custom annotation

2. Verify token, token buffer is empty or not find return unregistered

3. Start project

3. Access Interface

4. Log (analog), generating a token

5. Call interface to log in again, adding a request header token-generated, show success

In this record it, on a self-defined application notes and aop to verify about registration can also use interceptors to achieve (this function is convenient interceptors) 

Guess you like

Origin blog.csdn.net/YYpawn/article/details/86596444