InitService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.jjt.utils;
  2. import com.jjt.biz.service.IApiService;
  3. import com.jjt.calc.service.ITwinCalcHourService;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.core.env.Environment;
  6. import org.springframework.stereotype.Service;
  7. import javax.annotation.PostConstruct;
  8. import javax.annotation.Resource;
  9. /**
  10. * 初始化启动处理
  11. *
  12. * @author wukai
  13. * @date 2024/5/4 20:35
  14. */
  15. @Service
  16. @Slf4j
  17. public class InitService {
  18. @Resource
  19. private IApiService apiService;
  20. @Resource
  21. private ITwinCalcHourService twinCalcHourService;
  22. @Resource
  23. private Environment env;
  24. // @PostConstruct
  25. // public void init() {
  26. //// String[] activeProfiles = env.getActiveProfiles();
  27. //// System.err.println("================");
  28. //// System.err.println("================");
  29. //// System.err.println("================");
  30. //// System.err.println("================");
  31. //// System.err.println("================");
  32. //// for (String profile : activeProfiles) {
  33. //// System.err.println("Active Profile: " + profile);
  34. //// }
  35. // twinCalcHourService.calc2Curr();
  36. // apiService.curr();
  37. // apiService.today();
  38. // }
  39. }