|
@@ -3,10 +3,7 @@ package com.itheima.file.controller;
|
|
|
import com.itheima.file.service.WmMaterialService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
@Slf4j
|
|
@@ -22,4 +19,9 @@ public class WmMaterialController {
|
|
|
return wmMaterialService.uploadPicture(multipartFile);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("get")
|
|
|
+ public String get() {
|
|
|
+ return wmMaterialService.getList();
|
|
|
+ }
|
|
|
+
|
|
|
}
|