From 317993fa8a63bc32f2f66766a2990131832fd067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?FL=E5=9B=9B=E5=AD=A3?= <13785158474@163.com> Date: Tue, 19 Oct 2021 11:47:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=20=E8=BE=93=E5=87=BAurl=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/aidex/AiDexApplication.java | 51 +++++++++++++------ 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/aidex-admin/src/main/java/com/aidex/AiDexApplication.java b/aidex-admin/src/main/java/com/aidex/AiDexApplication.java index c584417..c53975a 100644 --- a/aidex-admin/src/main/java/com/aidex/AiDexApplication.java +++ b/aidex-admin/src/main/java/com/aidex/AiDexApplication.java @@ -1,8 +1,14 @@ package com.aidex; +import org.apache.commons.lang3.StringUtils; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.env.Environment; + +import java.net.InetAddress; +import java.net.UnknownHostException; /** * 启动程序 @@ -10,20 +16,33 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; * @author ruoyi */ @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) -public class AiDexApplication -{ - public static void main(String[] args) - { - System.setProperty("spring.devtools.restart.enabled", "false"); - SpringApplication.run(AiDexApplication.class, args); - StringBuffer aidex = new StringBuffer("(♥◠‿◠)ノ゙ AiDex启动成功 ლ(´ڡ`ლ)゙ \n"); - aidex.append(" /\\ (_) __ \\ / ____| |\n"); - aidex.append(" / \\ _| | | | _____ __ | (___ | |__ __ _ _ __ _ __\n"); - aidex.append(" / /\\ \\ | | | | |/ _ \\ \\/ / \\___ \\| '_ \\ / _` | '__| '_ \\\n"); - aidex.append(" / ____ \\| | |__| | __/> < ____) | | | | (_| | | | |_) |\n"); - aidex.append("/_/ \\_\\_|_____/ \\___/_/\\_\\ |_____/|_| |_|\\__,_|_| | .__/\n"); - aidex.append(" | |\n"); - aidex.append(" |_|"); - System.out.println(aidex); +public class AiDexApplication { + public static void main(String[] args) throws UnknownHostException { + { + System.setProperty("spring.devtools.restart.enabled", "false"); + ConfigurableApplicationContext application = SpringApplication.run(AiDexApplication.class, args); + StringBuffer aidex = new StringBuffer("(♥◠‿◠)ノ゙ AiDex启动成功 ლ(´ڡ`ლ)゙ \n"); + aidex.append(" /\\ (_) __ \\ / ____| |\n"); + aidex.append(" / \\ _| | | | _____ __ | (___ | |__ __ _ _ __ _ __\n"); + aidex.append(" / /\\ \\ | | | | |/ _ \\ \\/ / \\___ \\| '_ \\ / _` | '__| '_ \\\n"); + aidex.append(" / ____ \\| | |__| | __/> < ____) | | | | (_| | | | |_) |\n"); + aidex.append("/_/ \\_\\_|_____/ \\___/_/\\_\\ |_____/|_| |_|\\__,_|_| | .__/\n"); + aidex.append(" | |\n"); + aidex.append(" |_|"); + + Environment env = application.getEnvironment(); + String ip = InetAddress.getLocalHost().getHostAddress(); + String port = env.getProperty("server.port"); + String path = env.getProperty("server.servlet.context-path"); + if (StringUtils.isEmpty(path)) { + path = ""; + } + aidex.append("\n----------------------------------------------------------\n\t" + + "Application is running! Access URLs:\n\t" + + "Local访问网址: \t\thttp://localhost:" + port + path + "\n\t" + + "External访问网址: \thttp://" + ip + ":" + port + path + "\n\t" + + "----------------------------------------------------------"); + System.out.println(aidex); + } } -} +} \ No newline at end of file -- Gitee From c81857f88eb1fc44999a9195c3ce474724ec2cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?FL=E5=9B=9B=E5=AD=A3?= <13785158474@163.com> Date: Tue, 19 Oct 2021 11:50:11 +0800 Subject: [PATCH 2/4] =?UTF-8?q?ui=E5=89=8D=E7=AB=AF=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E5=90=AF=E5=8A=A8bat=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aidex-ui/download.bat | 1 + 1 file changed, 1 insertion(+) create mode 100644 aidex-ui/download.bat diff --git a/aidex-ui/download.bat b/aidex-ui/download.bat new file mode 100644 index 0000000..67301ac --- /dev/null +++ b/aidex-ui/download.bat @@ -0,0 +1 @@ +npm install --registry=https://registry.npm.taobao.org \ No newline at end of file -- Gitee From 302907d29cf4e1b4bee017b8ca229a25cb93cf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?FL=E5=9B=9B=E5=AD=A3?= <13785158474@163.com> Date: Tue, 19 Oct 2021 11:51:06 +0800 Subject: [PATCH 3/4] =?UTF-8?q?ui=E5=BF=AB=E9=80=9F=E5=90=AF=E5=8A=A8bat?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aidex-ui/start.bat | 1 + 1 file changed, 1 insertion(+) create mode 100644 aidex-ui/start.bat diff --git a/aidex-ui/start.bat b/aidex-ui/start.bat new file mode 100644 index 0000000..eb1cffd --- /dev/null +++ b/aidex-ui/start.bat @@ -0,0 +1 @@ +npm run serve \ No newline at end of file -- Gitee From 851c830da7f2093cff9e0ed0e74e6929aebb5e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?FL=E5=9B=9B=E5=AD=A3?= <13785158474@163.com> Date: Tue, 19 Oct 2021 14:28:15 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=20=E8=BE=93=E5=87=BAurl=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aidex-admin/src/main/java/com/aidex/AiDexApplication.java | 1 + 1 file changed, 1 insertion(+) diff --git a/aidex-admin/src/main/java/com/aidex/AiDexApplication.java b/aidex-admin/src/main/java/com/aidex/AiDexApplication.java index c53975a..1870ba6 100644 --- a/aidex-admin/src/main/java/com/aidex/AiDexApplication.java +++ b/aidex-admin/src/main/java/com/aidex/AiDexApplication.java @@ -37,6 +37,7 @@ public class AiDexApplication { if (StringUtils.isEmpty(path)) { path = ""; } + aidex.append("\n----------------------------------------------------------\n\t" + "Application is running! Access URLs:\n\t" + "Local访问网址: \t\thttp://localhost:" + port + path + "\n\t" + -- Gitee