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

com.codingapi.springboot.permission.db.template.SQLTemplateConfiguration Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.codingapi.springboot.permission.db.template;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author lorne
 * @since 1.0.0
 */
@Configuration
public class SQLTemplateConfiguration {

    @Bean
    public SQLTemplateInitializer sqlTemplateInitializer(@Autowired(required = false) List templateList) {
        return new SQLTemplateInitializer(templateList);
    }

    @Bean
    public H2SQLTemplate h2SQLTemplate(){
        return new H2SQLTemplate();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy