|
@@ -1,20 +0,0 @@
|
|
|
-package com.fdkankan.modeling;
|
|
|
-
|
|
|
-import com.fdkankan.oss.UploadUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
-@RestController
|
|
|
-@RequestMapping("/ts")
|
|
|
-public class TestController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private UploadUtils uploadUtils;
|
|
|
- @GetMapping("/up")
|
|
|
- private void upload(){
|
|
|
- uploadUtils.upload("C:\\Users\\Admin\\Desktop\\fsdownload\\Up.txt","testUp/up.txt");
|
|
|
- uploadUtils.upload2("C:\\Users\\Admin\\Desktop\\fsdownload\\Up1.txt","testUp/up1.txt");
|
|
|
- }
|
|
|
-}
|