in.hocg.boot.elasticsearch.autoconfiguration.ElasticsearchAutoConfiguration Maven / Gradle / Ivy
package in.hocg.boot.elasticsearch.autoconfiguration;
import in.hocg.boot.elasticsearch.autoconfiguration.properties.ElasticsearchProperties;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
/**
* Created by hocgin on 2020/8/15
* email: [email protected]
*
* @author hocgin
*/
@Configuration
@ConditionalOnProperty(prefix = ElasticsearchProperties.PREFIX, name = "enabled", matchIfMissing = true)
@EnableConfigurationProperties(ElasticsearchProperties.class)
@RequiredArgsConstructor(onConstructor = @__(@Lazy))
public class ElasticsearchAutoConfiguration {
}