package com.se.docker.controller; import com.se.docker.service.SysDockerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import com.se.common.core.domain.R; import javax.annotation.Resource; @RestController @SuppressWarnings("ALL") public class SysDockerController { @Resource SysDockerService sysDockerService; private static final Logger log = LoggerFactory.getLogger(SysDockerController.class); @GetMapping("test") public R upload(MultipartFile file) { try { String str = sysDockerService.test(); return R.ok(str); } catch (Exception e) { log.error(e.getMessage(), e); return R.fail(); } } }