RedisTemplate appears Connection is closed in Thread #39811
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: invalid
An issue that we don't feel is valid
Redis:7.2.4
SpringBoot-redis-data-starter:3.2.3
I used RedisTemplate to implement a blocking queue and used RedisTemplate.execute() to execute script commands. However, when I create a thread in the test method and call it, Caused by: io.lettuce.core.RedisException: Connection will appear. is closed, I don’t know what’s going on, please help.
application.yaml
RedisConfiguration:
queue.class:
test.class:
Connection is closed when used internally in Thread, but it is normal when used externally.
The text was updated successfully, but these errors were encountered: