|
@@ -3,6 +3,10 @@ package com.ruixuan;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
+import org.springframework.context.ConfigurableApplicationContext;
|
|
|
|
+
|
|
|
|
+import java.net.InetAddress;
|
|
|
|
+import java.net.UnknownHostException;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 启动程序
|
|
* 启动程序
|
|
@@ -12,11 +16,11 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
|
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
|
public class RuiXuanApplication
|
|
public class RuiXuanApplication
|
|
{
|
|
{
|
|
- public static void main(String[] args)
|
|
|
|
|
|
+ public static void main(String[] args)throws UnknownHostException
|
|
{
|
|
{
|
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|
|
- SpringApplication.run(RuiXuanApplication.class, args);
|
|
|
|
- System.out.println(
|
|
|
|
|
|
+ ConfigurableApplicationContext application = SpringApplication.run(RuiXuanApplication.class, args);
|
|
|
|
+ /*System.out.println(
|
|
" .-------. ____ __ \n"
|
|
" .-------. ____ __ \n"
|
|
+ " | _ _ \\ \\ \\ / / \n"
|
|
+ " | _ _ \\ \\ \\ / / \n"
|
|
+ " | ( ' ) | \\ _. / ' \n"
|
|
+ " | ( ' ) | \\ _. / ' \n"
|
|
@@ -26,6 +30,25 @@ public class RuiXuanApplication
|
|
+ " | | \\ `' /| `-' / \n"
|
|
+ " | | \\ `' /| `-' / \n"
|
|
+ " | | \\ / \\ / \n"
|
|
+ " | | \\ / \\ / \n"
|
|
+ " ''-' `'-' `-..-' \n\n"
|
|
+ " ''-' `'-' `-..-' \n\n"
|
|
- + " .........(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙ ........... ");
|
|
|
|
|
|
+ + " .........(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙ ........... ");*/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ System.out.println(
|
|
|
|
+ "Swagger文档地址:"+ InetAddress.getLocalHost().getHostAddress()+":"+
|
|
|
|
+ application.getEnvironment().getProperty("server.port")+"/"+
|
|
|
|
+ "swagger"+"\n"+
|
|
|
|
+ " __ __ \n"+
|
|
|
|
+ " ( _\\\\ /_ ) \n"+
|
|
|
|
+ " \\\\ _\\\\ /_ / \n"+
|
|
|
|
+ " \\\\ _\\\\/_ / \n"+
|
|
|
|
+ " |_____/_/ / \n"+
|
|
|
|
+ " ( (_)__)J-) \n"+
|
|
|
|
+ " ( /`., / \n"+
|
|
|
|
+ " \\ / ; / \n"+
|
|
|
|
+ " | ==== | \n"+
|
|
|
|
+ ".........(♥◠‿◠)ノ゙ 项目启动成功了 ლ(´ڡ`ლ)゙ ........... \n"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}
|
|
}
|