All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.aqiu202.qrcode.config.QrCodeAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package com.github.aqiu202.qrcode.config;

import com.github.aqiu202.qrcode.param.QrCodeProperties;
import com.github.aqiu202.qrcode.service.QrCodeService;
import com.github.aqiu202.qrcode.service.impl.QrCodeServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(QrCodeProperties.class)
public class QrCodeAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public QrCodeService qrCodeService(QrCodeProperties configuration) {
        return new QrCodeServiceImpl(configuration);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy