Commit 7f0901e0bb0bd60ef0fcd9840f5973914d45331c

Authored by YunaiV
1 parent 7c165fb1

优化项目启动速度,

@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <module>yudao-module-member</module> 16 <module>yudao-module-member</module>
17 <module>yudao-module-system</module> 17 <module>yudao-module-system</module>
18 <module>yudao-module-infra</module> 18 <module>yudao-module-infra</module>
19 - <module>yudao-module-pay</module> 19 +<!-- <module>yudao-module-pay</module>-->
20 <!-- <module>yudao-module-bpm</module>--> 20 <!-- <module>yudao-module-bpm</module>-->
21 <!-- <module>yudao-module-report</module>--> 21 <!-- <module>yudao-module-report</module>-->
22 <!-- <module>yudao-module-mp</module>--> 22 <!-- <module>yudao-module-mp</module>-->
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 { @@ -48,6 +48,10 @@ public class BannerApplicationRunner implements ApplicationRunner {
48 if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) { 48 if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) {
49 System.out.println("[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]"); 49 System.out.println("[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
50 } 50 }
  51 + // 支付
  52 + if (isNotPresent("cn.iocoder.yudao.module.pay.framework.pay.config.PayConfiguration")) {
  53 + System.out.println("[支付系统 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
  54 + }
51 }); 55 });
52 } 56 }
53 57
yudao-server/pom.xml
@@ -54,11 +54,11 @@ @@ -54,11 +54,11 @@
54 <!-- <version>${revision}</version>--> 54 <!-- <version>${revision}</version>-->
55 <!-- </dependency>--> 55 <!-- </dependency>-->
56 <!-- 支付服务。默认注释,保证编译速度 --> 56 <!-- 支付服务。默认注释,保证编译速度 -->
57 - <dependency>  
58 - <groupId>cn.iocoder.boot</groupId>  
59 - <artifactId>yudao-module-pay-biz</artifactId>  
60 - <version>${revision}</version>  
61 - </dependency> 57 +<!-- <dependency>-->
  58 +<!-- <groupId>cn.iocoder.boot</groupId>-->
  59 +<!-- <artifactId>yudao-module-pay-biz</artifactId>-->
  60 +<!-- <version>${revision}</version>-->
  61 +<!-- </dependency>-->
62 62
63 <!-- 微信公众号模块。默认注释,保证编译速度 --> 63 <!-- 微信公众号模块。默认注释,保证编译速度 -->
64 <!-- <dependency>--> 64 <!-- <dependency>-->
yudao-server/src/main/java/cn/iocoder/yudao/server/controller/DefaultController.java
@@ -27,13 +27,13 @@ public class DefaultController { @@ -27,13 +27,13 @@ public class DefaultController {
27 "[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]"); 27 "[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
28 } 28 }
29 29
30 -// @RequestMapping(value = {"/admin-api/product/**", // 商品中心  
31 -// "/admin-api/trade/**", // 交易中心  
32 -// "/admin-api/promotion/**"}) // 营销中心  
33 -// public CommonResult<Boolean> mall404() {  
34 -// return CommonResult.error(NOT_IMPLEMENTED.getCode(),  
35 -// "[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");  
36 -// } 30 + @RequestMapping(value = {"/admin-api/product/**", // 商品中心
  31 + "/admin-api/trade/**", // 交易中心
  32 + "/admin-api/promotion/**"}) // 营销中心
  33 + public CommonResult<Boolean> mall404() {
  34 + return CommonResult.error(NOT_IMPLEMENTED.getCode(),
  35 + "[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
  36 + }
37 37
38 @RequestMapping(value = {"/admin-api/report/**"}) 38 @RequestMapping(value = {"/admin-api/report/**"})
39 public CommonResult<Boolean> report404() { 39 public CommonResult<Boolean> report404() {
@@ -41,4 +41,10 @@ public class DefaultController { @@ -41,4 +41,10 @@ public class DefaultController {
41 "[报表模块 yudao-module-report - 已禁用][参考 https://doc.iocoder.cn/report/ 开启]"); 41 "[报表模块 yudao-module-report - 已禁用][参考 https://doc.iocoder.cn/report/ 开启]");
42 } 42 }
43 43
  44 + @RequestMapping(value = {"/admin-api/pay/**"})
  45 + public CommonResult<Boolean> pay404() {
  46 + return CommonResult.error(NOT_IMPLEMENTED.getCode(),
  47 + "[支付模块 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
  48 + }
  49 +
44 } 50 }