RuiXuanApplication.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.ruixuan;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  5. import org.springframework.context.ConfigurableApplicationContext;
  6. import java.net.InetAddress;
  7. import java.net.UnknownHostException;
  8. /**
  9. * 启动程序-test1
  10. *
  11. * @author ruoyi
  12. */
  13. @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
  14. public class RuiXuanApplication
  15. {
  16. public static void main(String[] args)throws UnknownHostException
  17. {
  18. // System.setProperty("spring.devtools.restart.enabled", "false");
  19. ConfigurableApplicationContext application = SpringApplication.run(RuiXuanApplication.class, args);
  20. /*System.out.println(
  21. " .-------. ____ __ \n"
  22. + " | _ _ \\ \\ \\ / / \n"
  23. + " | ( ' ) | \\ _. / ' \n"
  24. + " |(_ o _) / _( )_ .' \n"
  25. + " | (_,_).' __ ___(_ o _)' \n"
  26. + " | |\\ \\ | || |(_,_)' \n"
  27. + " | | \\ `' /| `-' / \n"
  28. + " | | \\ / \\ / \n"
  29. + " ''-' `'-' `-..-' \n\n"
  30. + " .........(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙ ........... ");*/
  31. System.out.println(
  32. "Swagger文档地址:"+ InetAddress.getLocalHost().getHostAddress()+":"+
  33. application.getEnvironment().getProperty("server.port")+"/"+
  34. "swagger"+"\n"+
  35. " __ __ \n"+
  36. " ( _\\\\ /_ ) \n"+
  37. " \\\\ _\\\\ /_ / \n"+
  38. " \\\\ _\\\\/_ / \n"+
  39. " |_____/_/ / \n"+
  40. " ( (_)__)J-) \n"+
  41. " ( /`., / \n"+
  42. " \\ / ; / \n"+
  43. " | ==== | \n"+
  44. ".........(♥◠‿◠)ノ゙ 项目启动成功了 ლ(´ڡ`ლ)゙ ........... \n"
  45. );
  46. }
  47. }