web: operation_history_flag ADD
parent
7922a8e0c0
commit
d92f26d1b7
@ -0,0 +1,32 @@
|
|||||||
|
package com.supervision;
|
||||||
|
|
||||||
|
import cn.hutool.core.io.FileUtil;
|
||||||
|
import cn.hutool.core.io.IoUtil;
|
||||||
|
import com.supervision.service.AskService;
|
||||||
|
import com.supervision.util.MinioUtil;
|
||||||
|
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.SpringJUnit4ClassRunner;
|
||||||
|
|
||||||
|
import java.io.BufferedInputStream;
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
|
||||||
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
public class VideoUpdateTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void contextLoads() throws Exception {
|
||||||
|
|
||||||
|
|
||||||
|
BufferedInputStream inputStream = FileUtil.getInputStream("F:\\supervision\\doc\\数字人视频\\final_video\\final_video\\0.mp4");
|
||||||
|
|
||||||
|
|
||||||
|
String s = MinioUtil.uploadFile(inputStream, "ddd");
|
||||||
|
System.out.println(s);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue