Browse Source

修改banner。

tom 2 tháng trước cách đây
mục cha
commit
4dd2e45371

+ 18 - 16
ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java

@@ -6,25 +6,27 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
 
 /**
  * 启动程序
- * 
+ *
  * @author ruoyi
  */
-@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
-public class RuoYiApplication
-{
-    public static void main(String[] args)
-    {
+@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
+public class RuoYiApplication {
+    public static final String START_OK = " ________  ___  __       \n" +
+            "|\\   __  \\|\\  \\|\\  \\     \n" +
+            "\\ \\  \\|\\  \\ \\  \\/  /|_   \n" +
+            " \\ \\  \\\\\\  \\ \\   ___  \\  \n" +
+            "  \\ \\  \\\\\\  \\ \\  \\\\ \\  \\ \n" +
+            "   \\ \\_______\\ \\__\\\\ \\__\\\n" +
+            "    \\|_______|\\|__| \\|__|\n" +
+            "                         \n" +
+            "                         \n" +
+            "                         ";
+
+
+
+    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" +
-                " ''-'   `'-'    `-..-'              ");
+        System.out.println(START_OK);
     }
 }

+ 8 - 22
ruoyi-admin/src/main/resources/banner.txt

@@ -1,24 +1,10 @@
 Application Version: ${ruoyi.version}
 Spring Boot Version: ${spring-boot.version}
-////////////////////////////////////////////////////////////////////
-//                          _ooOoo_                               //
-//                         o8888888o                              //
-//                         88" . "88                              //
-//                         (| ^_^ |)                              //
-//                         O\  =  /O                              //
-//                      ____/`---'\____                           //
-//                    .'  \\|     |//  `.                         //
-//                   /  \\|||  :  |||//  \                        //
-//                  /  _||||| -:- |||||-  \                       //
-//                  |   | \\\  -  /// |   |                       //
-//                  | \_|  ''\---/''  |   |                       //
-//                  \  .-\__  `-`  ___/-. /                       //
-//                ___`. .'  /--.--\  `. . ___                     //
-//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
-//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
-//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
-//      ========`-.____`-.___\_____/___.-`____.-'========         //
-//                           `=---='                              //
-//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
-//             佛祖保佑       永不宕机      永无BUG               //
-////////////////////////////////////////////////////////////////////
+ ________ ___  ___     ___    ___ ___    ___
+|\  _____\\  \|\  \   |\  \  /  /|\  \  /  /|
+\ \  \__/\ \  \\\  \  \ \  \/  / | \  \/  / /
+ \ \   __\\ \   __  \  \ \    / / \ \    / /
+  \ \  \_| \ \  \ \  \  /     \/   \/  /  /
+   \ \__\   \ \__\ \__\/  /\   \ __/  / /
+    \|__|    \|__|\|__/__/ /\ __\\___/ /
+                      |__|/ \|__\|___|/      

+ 2 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/CommBuildService.java

@@ -10,6 +10,7 @@ import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 
 import static com.ruoyi.sim.constant.CommConst.*;
@@ -32,6 +33,7 @@ public class CommBuildService {
     @Autowired
     private SnowflakeIdService idService;
     @Autowired
+    @Lazy
     private CommSendService commSendService;
     @Autowired
     private SeatService seatService;

+ 1 - 1
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/CommSendService.java

@@ -56,7 +56,7 @@ public class CommSendService {
     @Autowired
     private CommCheckService commCheckService;
     @Autowired
-    CommReceiveService commReceiveService;
+    private CommReceiveService commReceiveService;
     @Autowired
     private SimConfig config;
     @Autowired