RuoYiApplication.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ruoyi;
  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.annotation.Bean;
  6. import org.springframework.web.client.RestTemplate;
  7. /**
  8. * 启动程序
  9. *
  10. * @author ruoyi
  11. */
  12. @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class ,})
  13. public class RuoYiApplication
  14. {
  15. public static void main(String[] args)
  16. {
  17. // System.setProperty("spring.devtools.restart.enabled", "false");
  18. SpringApplication.run(RuoYiApplication.class, args);
  19. System.out.println("(♥◠‿◠)ノ゙智能配电应用平台启动成功 ლ(´ڡ`ლ)゙ \n" +
  20. " .-------. ____ __ \n" +
  21. " | _ _ \\ \\ \\ / / \n" +
  22. " | ( ' ) | \\ _. / ' \n" +
  23. " |(_ o _) / _( )_ .' \n" +
  24. " | (_,_).' __ ___(_ o _)' \n" +
  25. " | |\\ \\ | || |(_,_)' \n" +
  26. " | | \\ `' /| `-' / \n" +
  27. " | | \\ / \\ / \n" +
  28. " ''-' `'-' `-..-' ");
  29. }
  30. @Bean
  31. public RestTemplate restTemplate() {
  32. return new RestTemplate();
  33. }
  34. }