| | |
| | | package com.doumee.config.cloudfilter; |
| | | |
| | | import com.doumee.core.utils.Constants; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | |
| | | @Override |
| | | public void addInterceptors(InterceptorRegistry registry) { |
| | | registry.addInterceptor(new LoginHandlerInterceptor(stringRedisTemplate)) |
| | | .addPathPatterns("/cloudService/**"); |
| | | .addPathPatterns(Constants.CLOUD_SERVICE_URL_INDEX+"/**"); |
| | | } |
| | | } |