12345678910111213141516171819202122232425262728293031323334353637 |
- package com.ruoyi;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
- import org.springframework.context.annotation.Bean;
- import org.springframework.web.client.RestTemplate;
- /**
- * 启动程序
- *
- * @author ruoyi
- */
- @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class ,})
- public class RuoYiApplication
- {
- public static void main(String[] args)
- {
- // System.setProperty("spring.devtools.restart.enabled", "false");
- SpringApplication.run(RuoYiApplication.class, args);
- System.out.println("(♥◠‿◠)ノ゙智能配电应用平台启动成功 ლ(´ڡ`ლ)゙ \n" +
- " .-------. ____ __ \n" +
- " | _ _ \\ \\ \\ / / \n" +
- " | ( ' ) | \\ _. / ' \n" +
- " |(_ o _) / _( )_ .' \n" +
- " | (_,_).' __ ___(_ o _)' \n" +
- " | |\\ \\ | || |(_,_)' \n" +
- " | | \\ `' /| `-' / \n" +
- " | | \\ / \\ / \n" +
- " ''-' `'-' `-..-' ");
- }
- @Bean
- public RestTemplate restTemplate() {
- return new RestTemplate();
- }
- }
|