update 调整 默认关闭 elasticsearch 功能

This commit is contained in:
疯狂的狮子li
2022-08-03 16:42:49 +08:00
parent f79ed3661e
commit 5eec693684
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package com.ruoyi.common.elasticsearch.config;
import cn.easyes.starter.register.EsMapperScan;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
/**
* easy-es 配置
@@ -9,6 +10,7 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
* @author Lion Li
*/
@AutoConfiguration
@ConditionalOnProperty(value = "easy-es.enable", havingValue = "true")
@EsMapperScan("com.ruoyi.**.esmapper")
public class EasyEsConfiguration {