过程:
刚开始访问 http://localhost:8081/test/login?name=root&pwd=root
(访问登录页面不会被拦截)
Session中存当前登录用户
此时再去访问其他网址:
拦截器进行拦截,但由于当前session中有值,因此拦截器return true 放行,所以能正常访问
过程:
刚开始访问 http://localhost:8081/test/login?name=root&pwd=root
(访问登录页面不会被拦截)
Session中存当前登录用户
此时再去访问其他网址:
拦截器进行拦截,但由于当前session中有值,因此拦截器return true 放行,所以能正常访问