|
|
|
@ -45,15 +45,20 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
|
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
|
import org.springblade.common.utils.FileLogsUtil; |
|
|
|
|
import org.springblade.core.oss.model.BladeFile; |
|
|
|
|
import org.springblade.core.redis.cache.BladeRedis; |
|
|
|
|
import org.springblade.core.test.BladeBootTest; |
|
|
|
|
import org.springblade.core.test.BladeSpringExtension; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.api.ResultCode; |
|
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.resource.feign.IOssClient; |
|
|
|
|
import org.springframework.amqp.core.Message; |
|
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitHandler; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.data.redis.connection.RedisConnection; |
|
|
|
|
import org.springframework.data.redis.connection.RedisConnectionFactory; |
|
|
|
|
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; |
|
|
|
|
import org.springframework.http.MediaType; |
|
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
import org.springframework.web.multipart.commons.CommonsMultipartFile; |
|
|
|
@ -272,5 +277,28 @@ public class TestService {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void test6(){ |
|
|
|
|
|
|
|
|
|
BladeRedis bean = SpringUtil.getBean(BladeRedis.class); |
|
|
|
|
|
|
|
|
|
RedisConnectionFactory connectionFactory = bean.getRedisTemplate().getConnectionFactory(); |
|
|
|
|
|
|
|
|
|
LettuceConnectionFactory factory = (LettuceConnectionFactory) connectionFactory; |
|
|
|
|
|
|
|
|
|
String hostName = factory.getHostName(); |
|
|
|
|
int port = factory.getPort(); |
|
|
|
|
String password = factory.getPassword(); |
|
|
|
|
|
|
|
|
|
System.out.println(hostName); |
|
|
|
|
System.out.println(port); |
|
|
|
|
System.out.println(password); |
|
|
|
|
|
|
|
|
|
assert false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|