HosAgentApplication.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.yihu.hos.agent;
  2. import com.yihu.hos.agent.service.MycatService;
  3. import com.yihu.hos.agent.service.FlowService;
  4. import com.yihu.hos.agent.service.ShellService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.boot.CommandLineRunner;
  7. import org.springframework.boot.SpringApplication;
  8. import org.springframework.boot.autoconfigure.SpringBootApplication;
  9. @SpringBootApplication
  10. public class HosAgentApplication implements CommandLineRunner {
  11. private FlowService flowService;
  12. private ShellService shellService;
  13. private MycatService mycatService;
  14. public static void main(String[] args) {
  15. SpringApplication.run(HosAgentApplication.class, args);
  16. }
  17. @Override
  18. public void run(String... strings) throws Exception {
  19. // flowService.server();
  20. // shellService.server();
  21. // mycatService.server();
  22. }
  23. @Autowired
  24. public void setFlowService(FlowService flowService) {
  25. this.flowService = flowService;
  26. }
  27. @Autowired
  28. public void setShellService(ShellService shellService) {
  29. this.shellService = shellService;
  30. }
  31. @Autowired
  32. public void setMycatService(MycatService mycatService) {
  33. this.mycatService = mycatService;
  34. }
  35. }