com.codingapi.springboot.permission.db.template.SQLTemplateConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter-data-permission Show documentation
Show all versions of springboot-starter-data-permission Show documentation
springboot-starter-data-permission project for Spring Boot
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();
}
}