public class ReadTimeConsoleController {

    @Autowired
    private JavaShellUtil javaShellUtil;

    @GetMapping("")
    public JSONObject getConsoleLog(){
        try {
            javaShellUtil.execDi(new String[]{"ping", "baidu.com"});
        } catch (IOException e) {
            e.printStackTrace();
        }