修复MongoDB自动配置日志错误提示

This commit is contained in:
jiangqiang 2022-07-16 10:07:50 +08:00
parent 5c58a377db
commit 5da611d85d
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package cn.iocoder.yudao.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
/**
* 项目的启动类
@ -13,7 +14,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @author 芋道源码
*/
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package}
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module", "org.jeecg.modules.jmreport"})
@SpringBootApplication(exclude = MongoAutoConfiguration.class, scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module", "org.jeecg.modules.jmreport"})
public class YudaoServerApplication {
public static void main(String[] args) {

View File

@ -69,6 +69,7 @@ yudao:
security:
permit-all_urls:
- /admin-ui/** # /resources/admin-ui 目录下的静态资源
- /jmreport/**
swagger:
title: 管理后台
description: 提供管理员管理的所有功能