File was renamed from pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/webFilter/UserTokerFilter.java |
| | |
| | | import com.dy.common.contant.Constant; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.mysql.jdbc.StringUtils; |
| | | import com.mysql.cj.util.StringUtils ; |
| | | import jakarta.servlet.*; |
| | | import jakarta.servlet.http.HttpServletRequest; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | |
| | | import java.io.PrintWriter; |
| | | |
| | | @Slf4j |
| | | public class UserTokerFilter implements Filter { |
| | | public class UserTokenFilter implements Filter { |
| | | @Override |
| | | public void init(FilterConfig filterConfig) throws ServletException { |
| | | //log.info("UserTokerFilter init: name:" + filterConfig.getInitParameter("name")); |
| | | } |
| | | |
| | | @Override |
| | |
| | | }else{ |
| | | PrintWriter pw = null ; |
| | | try { |
| | | BaseResponse res = BaseResponseUtils.buildToLogin() ; |
| | | BaseResponse<?> res = BaseResponseUtils.buildToLogin() ; |
| | | String jsonString = JSON.toJSONString(res); |
| | | response.setCharacterEncoding("UTF-8"); |
| | | response.setContentType("application/json; charset=utf-8"); |