| 1234567891011121314151617181920212223 |
- package cn.com.goldenwater.dcproj.controller.monitor;
- import cn.com.goldenwater.dcproj.model.AjaxResult;
- import cn.com.goldenwater.dcproj.model.Server;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 服务器监控
- *
- * @author ruoyi
- */
- @RestController
- @RequestMapping("/monitor/server")
- public class ServerController {
- @GetMapping()
- public AjaxResult getInfo() throws Exception {
- Server server = new Server();
- server.copyTo();
- return AjaxResult.success(server);
- }
- }
|