@Configuration public class EasyEsConfiguration extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.EnvironmentAware
| 构造器和说明 |
|---|
EasyEsConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
当当前配置类注册为bean完成后触发,校验easy-es配置是否存在,
如果easy-es.enable: false, 那么不进行校验和抛出异常
默认情况下引入了easy-es是需要配置的,即easy-es.enable:true
如果不需要easy-es,那么自行配置为false
|
org.dromara.easyes.common.strategy.AutoProcessIndexStrategy |
autoProcessIndexNotSmoothlyStrategy() |
org.dromara.easyes.common.strategy.AutoProcessIndexStrategy |
autoProcessIndexSmoothlyStrategy()
索引策略注册
|
org.dromara.easyes.common.utils.EsClientUtils |
esClientUtils() |
IndexStrategyFactory |
indexStrategyFactory() |
void |
setEnvironment(@NonNull org.springframework.core.env.Environment environment) |
public void setEnvironment(@NonNull
@NonNull org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwarepublic void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean@Bean public IndexStrategyFactory indexStrategyFactory()
@Bean public org.dromara.easyes.common.utils.EsClientUtils esClientUtils()
@Bean public org.dromara.easyes.common.strategy.AutoProcessIndexStrategy autoProcessIndexSmoothlyStrategy()
AutoProcessIndexStrategy@Bean public org.dromara.easyes.common.strategy.AutoProcessIndexStrategy autoProcessIndexNotSmoothlyStrategy()
Copyright © 2025. All rights reserved.