51 lines
1.4 KiB
Java
51 lines
1.4 KiB
Java
package gb;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import io.minio.MinioClient;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import net.shapelight.AdminApplication;
|
|
import net.shapelight.common.config.MinioConfig;
|
|
import net.shapelight.common.utils.DateUtils;
|
|
import net.shapelight.common.utils.RedisUtils;
|
|
import net.shapelight.modules.xian.service.XaApi;
|
|
import net.shapelight.modules.xian.utils.XaUtils;
|
|
import net.shapelight.modules.xian.vo.XaData;
|
|
import net.shapelight.modules.xian.vo.XaPages;
|
|
import net.shapelight.modules.xian.vo.XaRYRKPHOTO;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.util.ArrayList;
|
|
import java.util.Base64;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
@RunWith(SpringRunner.class)
|
|
@SpringBootTest(classes = AdminApplication.class)
|
|
@Slf4j
|
|
public class CarImageRedisTest {
|
|
|
|
@Autowired
|
|
private MinioClient minioClient;
|
|
@Autowired
|
|
private MinioConfig minioConfig;
|
|
@Autowired
|
|
private RedisUtils redisUtils;
|
|
|
|
@Test
|
|
public void carRedisTest(){
|
|
Object url = redisUtils.getPattern("CarImage");
|
|
if(url!=null){
|
|
String urlStr = (String)url;
|
|
|
|
}
|
|
}
|
|
|
|
}
|