22 lines
590 B
Java
22 lines
590 B
Java
package com.ruoyi;
|
|
|
|
import com.ruoyi.common.utils.FtpUtil;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import java.io.File;
|
|
import java.io.FileInputStream;
|
|
import java.io.FileNotFoundException;
|
|
|
|
@SpringBootTest(classes=RuoYiApplication.class)
|
|
public class RuoYiTestApplication {
|
|
|
|
|
|
@Test
|
|
public void asfsrfsf() throws FileNotFoundException {
|
|
FtpUtil.uploadFile("192.168.5.18", 8022, "admin", "hbyt2025", "", "test11/111111111/222222", "33333.dwg", new FileInputStream(new File("D:\\dwg\\111111111111111.dwg")));
|
|
}
|
|
|
|
|
|
}
|