| | |
| | | import jodd.util.StringUtil; |
| | | import lombok.SneakyThrows; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.catalina.security.SecurityUtil; |
| | | import org.springframework.core.Ordered; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | String customer = request.getHeader("customer"); |
| | | |
| | | if (StringUtil.isNotBlank(customer)) { |
| | | CustomerInspectContextHolder.setTenantId(customer); |
| | | CustomerInspectContextHolder.setCustomerId(customer); |
| | | } |
| | | filterChain.doFilter(request, response); |
| | | } finally { |