2024-12-08 19:21:52 +08:00
|
|
|
package com.guwan.backend.config;
|
|
|
|
|
2024-12-09 22:22:26 +08:00
|
|
|
import cn.easyes.starter.factory.IndexStrategyFactory;
|
2024-12-08 19:21:52 +08:00
|
|
|
import cn.easyes.starter.register.EsMapperScan;
|
2024-12-09 22:22:26 +08:00
|
|
|
import cn.easyes.starter.config.EasyEsConfigProperties;
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
2024-12-08 19:21:52 +08:00
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
@Configuration
|
2024-12-23 14:55:04 +08:00
|
|
|
@EsMapperScan("com.guwan.backend.elasticsearch.mapper")
|
2024-12-09 22:22:26 +08:00
|
|
|
@EnableConfigurationProperties(EasyEsConfigProperties.class)
|
2024-12-08 19:21:52 +08:00
|
|
|
public class EasyEsConfig {
|
2024-12-09 22:22:26 +08:00
|
|
|
@Bean
|
|
|
|
public IndexStrategyFactory indexStrategyFactory() {
|
|
|
|
return new IndexStrategyFactory();
|
|
|
|
}
|
2024-12-08 19:21:52 +08:00
|
|
|
}
|