| | |
| | | import com.ycl.config.DingConfig; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.ApplicationListener; |
| | | import org.springframework.context.event.ContextRefreshedEvent; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class GetDingToken implements ApplicationListener<ContextRefreshedEvent> { |
| | | public class GetDingToken implements ApplicationListener<ContextRefreshedEvent> { |
| | | private static GetClient getTokenClient; |
| | | @Autowired |
| | | private StringRedisTemplate redisTemplate; |