| | |
| | | //package com.whyc.filter; |
| | | // |
| | | //import com.whyc.pojo.User; |
| | | //import com.whyc.pojo.UserInf; |
| | | //import lombok.extern.slf4j.Slf4j; |
| | | // |
| | | //import javax.servlet.*; |
| | |
| | | // source = uri[uri.length - 1]; |
| | | // } |
| | | // String suffix = source.substring(source.indexOf(".")+1); |
| | | // User user=(User)request.getSession().getAttribute("user"); |
| | | // UserInf user=(UserInf)request.getSession().getAttribute("user"); |
| | | // |
| | | // //不拦截swagger的资源请求,以及登录请求 |
| | | // if(URL.indexOf("swagger-resources")>-1 ||URL.indexOf("swagger-ui")>-1 ||URL.indexOf("v2/api-docs")>-1||URL.indexOf("login")>-1){ |