一.以springboot为例,建立代码 1.IExecCommandServer: 1 2 3 4 5 public interface IExecCommandServer { void execCommand(String cmd); } 2.ExecCommandServerImp: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 @Service public class Exec
 
                      
                              一.以springboot为例,建立代码1.IExecCommandServer:
 2.ExecCommandServerImp:
 3.ExecCommandController:
 二,执行示例
 日志中输出: 
  | 
                          
2021-06-05
2021-05-27
2021-05-26
2021-06-05
2021-05-16