How springMVC project to bypass interceptors rights verification, carried out controller test

Today, suddenly I want to write a class test controller for testing postman, first of all realize HandlerInterceptor interface found or intercepted interceptor, and finally do not have the code to get permission directly through the cookie.

You must first log in on the page, open the debugging tools in a browser, access to cookie

 Copy the two final tests to postman

The browser can directly access more intuitive. .

Guess you like

Origin blog.csdn.net/vandet100/article/details/94571620