in.hocg.boot.rocketmq.autoconfiguration.RocketMQAutoConfiguration Maven / Gradle / Ivy
package in.hocg.boot.rocketmq.autoconfiguration;
import in.hocg.boot.rocketmq.autoconfiguration.properties.RocketMQProperties;
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 = RocketMQProperties.PREFIX, name = "enabled", matchIfMissing = true)
@EnableConfigurationProperties(RocketMQProperties.class)
@RequiredArgsConstructor(onConstructor = @__(@Lazy))
public class RocketMQAutoConfiguration {
}