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

com.blr19c.common.mybatisWrapper.MybatisWrapperAutoConfig Maven / Gradle / Ivy

Go to download

The blr19c-common library contains utility classes, Map/Stream implementation, sending enterprise WeChat, IP/ip address acquisition, mybatis-plus separation implementation, and so on.

There is a newer version: 1.4.4
Show newest version
package com.blr19c.common.mybatisWrapper;

import com.blr19c.common.mybatisWrapper.wrapper.SqlSessionTemplateWrapper;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class MybatisWrapperAutoConfig {

    @Bean
    @ConditionalOnBean(SqlSessionFactory.class)
    @Primary
    public SqlSessionTemplateWrapper sqlSessionTemplateWrapper(SqlSessionFactory sqlSessionFactory) {
        return new SqlSessionTemplateWrapper(sqlSessionFactory);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy