com.spring.boxes.valve.starter.ValveKeyAutoConfiguration Maven / Gradle / Ivy
The newest version!
package com.spring.boxes.valve.starter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;
@Slf4j
@Configuration
@EnableConfigurationProperties(ValveKeyProperties.class)
public class ValveKeyAutoConfiguration {
@Resource
private ValveKeyProperties valveKeyProperties;
@Bean
public ValveKeyTemplate valveKeyTemplate() {
return new ValveKeyTemplate(valveKeyProperties);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy