Browse Source

优化项目启动速度,

YunaiV 1 year atrás
parent
commit
7f0901e0bb

+ 1 - 1
pom.xml

@@ -16,7 +16,7 @@
         <module>yudao-module-member</module>
         <module>yudao-module-system</module>
         <module>yudao-module-infra</module>
-        <module>yudao-module-pay</module>
+<!--        <module>yudao-module-pay</module>-->
 <!--        <module>yudao-module-bpm</module>-->
 <!--        <module>yudao-module-report</module>-->
 <!--        <module>yudao-module-mp</module>-->

+ 4 - 0
yudao-framework/yudao-spring-boot-starter-banner/src/main/java/cn/iocoder/yudao/framework/banner/core/BannerApplicationRunner.java

@@ -48,6 +48,10 @@ public class BannerApplicationRunner implements ApplicationRunner {
             if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) {
                 System.out.println("[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
             }
+            // 支付
+            if (isNotPresent("cn.iocoder.yudao.module.pay.framework.pay.config.PayConfiguration")) {
+                System.out.println("[支付系统 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
+            }
         });
     }
 

+ 5 - 5
yudao-server/pom.xml

@@ -54,11 +54,11 @@
 <!--            <version>${revision}</version>-->
 <!--        </dependency>-->
         <!-- 支付服务。默认注释,保证编译速度 -->
-        <dependency>
-            <groupId>cn.iocoder.boot</groupId>
-            <artifactId>yudao-module-pay-biz</artifactId>
-            <version>${revision}</version>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>cn.iocoder.boot</groupId>-->
+<!--            <artifactId>yudao-module-pay-biz</artifactId>-->
+<!--            <version>${revision}</version>-->
+<!--        </dependency>-->
 
         <!-- 微信公众号模块。默认注释,保证编译速度 -->
 <!--        <dependency>-->

+ 13 - 7
yudao-server/src/main/java/cn/iocoder/yudao/server/controller/DefaultController.java

@@ -27,13 +27,13 @@ public class DefaultController {
                 "[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
     }
 
-//    @RequestMapping(value = {"/admin-api/product/**", // 商品中心
-//            "/admin-api/trade/**", // 交易中心
-//            "/admin-api/promotion/**"})  // 营销中心
-//    public CommonResult<Boolean> mall404() {
-//        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
-//                "[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
-//    }
+    @RequestMapping(value = {"/admin-api/product/**", // 商品中心
+            "/admin-api/trade/**", // 交易中心
+            "/admin-api/promotion/**"})  // 营销中心
+    public CommonResult<Boolean> mall404() {
+        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
+                "[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
+    }
 
     @RequestMapping(value = {"/admin-api/report/**"})
     public CommonResult<Boolean> report404() {
@@ -41,4 +41,10 @@ public class DefaultController {
                 "[报表模块 yudao-module-report - 已禁用][参考 https://doc.iocoder.cn/report/ 开启]");
     }
 
+    @RequestMapping(value = {"/admin-api/pay/**"})
+    public CommonResult<Boolean> pay404() {
+        return CommonResult.error(NOT_IMPLEMENTED.getCode(),
+                "[支付模块 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
+    }
+
 }