update 调整 默认关闭 elasticsearch 功能
parent
f79ed3661e
commit
5eec693684
|
|
@ -2,6 +2,7 @@ package com.ruoyi.common.elasticsearch.config;
|
||||||
|
|
||||||
import cn.easyes.starter.register.EsMapperScan;
|
import cn.easyes.starter.register.EsMapperScan;
|
||||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* easy-es 配置
|
* easy-es 配置
|
||||||
|
|
@ -9,6 +10,7 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
@AutoConfiguration
|
@AutoConfiguration
|
||||||
|
@ConditionalOnProperty(value = "easy-es.enable", havingValue = "true")
|
||||||
@EsMapperScan("com.ruoyi.**.esmapper")
|
@EsMapperScan("com.ruoyi.**.esmapper")
|
||||||
public class EasyEsConfiguration {
|
public class EasyEsConfiguration {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.R;
|
||||||
import com.ruoyi.demo.domain.Document;
|
import com.ruoyi.demo.domain.Document;
|
||||||
import com.ruoyi.demo.esmapper.DocumentMapper;
|
import com.ruoyi.demo.esmapper.DocumentMapper;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -14,6 +15,7 @@ import java.util.List;
|
||||||
*
|
*
|
||||||
* @author Lion Li
|
* @author Lion Li
|
||||||
*/
|
*/
|
||||||
|
@ConditionalOnProperty(value = "easy-es.enable", havingValue = "true")
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class EsCrudController {
|
public class EsCrudController {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue