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

com.base4j.mybatis.MybatisStarter Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.base4j.mybatis;

import com.base4j.mybatis.tool.SpringContextHelper;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by USER on 2017-03-13.
 */
@Configuration
@EnableTransactionManagement
@ComponentScan("com.base4j.mybatis")
public class MybatisStarter {

    public static void main(String[] args) {
        SpringApplication.run(MybatisStarter.class);

        Object mybatisConfig = SpringContextHelper.getBeanById("mybatisConfig");
        System.out.println(mybatisConfig);

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy