Commit 5da611d85de72ec3c5f935c26676d45654f6fc4e
1 parent
5c58a377
修复MongoDB自动配置日志错误提示
Showing
2 changed files
with
3 additions
and
1 deletions
yudao-server/src/main/java/cn/iocoder/yudao/server/YudaoServerApplication.java
| ... | ... | @@ -2,6 +2,7 @@ package cn.iocoder.yudao.server; |
| 2 | 2 | |
| 3 | 3 | import org.springframework.boot.SpringApplication; |
| 4 | 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 5 | +import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration; | |
| 5 | 6 | |
| 6 | 7 | /** |
| 7 | 8 | * 项目的启动类 |
| ... | ... | @@ -13,7 +14,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 13 | 14 | * @author 芋道源码 |
| 14 | 15 | */ |
| 15 | 16 | @SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package} |
| 16 | -@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module", "org.jeecg.modules.jmreport"}) | |
| 17 | +@SpringBootApplication(exclude = MongoAutoConfiguration.class, scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module", "org.jeecg.modules.jmreport"}) | |
| 17 | 18 | public class YudaoServerApplication { |
| 18 | 19 | |
| 19 | 20 | public static void main(String[] args) { | ... | ... |