|
|
@@ -4,6 +4,8 @@ import cn.reghao.autodop.dmaster.cluster.service.MachineService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
/**
|
|
|
* @author reghao
|
|
|
* @date 2019-11-15 08:44:50
|
|
|
@@ -17,4 +19,9 @@ public class MachineController {
|
|
|
public MachineController(MachineService machineService) {
|
|
|
this.machineService = machineService;
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/test")
|
|
|
+ public String test(HttpServletRequest request) {
|
|
|
+ return request.getHeader("user-agent");
|
|
|
+ }
|
|
|
}
|