When i want to subscribe from redis with a channel in springboot. I have two CommandLineRunner interface implementation class, in the run method, there will call redis to subscribe, like this : redisService.subscribe(callback, channel); but when the server start, two class only one can take effect. In other words, only one class can subscribe from redis success, although there are subscribe different channel with different callback, i don't know why. I try use the threadpool to async execute subscribe method, but it's not useful. Look forward to your reply, need more information, please contact me promptly, thanks.