Coder Social home page Coder Social logo

easy-mybatis's Introduction

easy-mybatis

快速上手,简单使用

实现功能

  • 基础 BaseMapper 通用基础方法(增删改查)
  • 基础 BaseService 通用基础接口(增删改查+分页)
  • 基础 TreeableService 通用层级结构操作接口(增删改查节点)

使用

// 配置对象
EasyMybatisConfiguration configuration = new EasyMybatisConfiguration();
// java命名格式
configuration.setJavaCaseFormat(CaseFormat.LOWER_CAMEL);
// 数据库命名格式
configuration.setDatabaseCaseFormat(CaseFormat.LOWER_UNDERSCORE);
// 传入 SqlSessionFactory 进行初始化
configuration.init(sqlSessionFactory);

文档

Maven

  • 单独使用
<dependency>
    <groupId>com.github.freegeese</groupId>
    <artifactId>easy-mybatis</artifactId>
    <version>1.0</version>
</dependency>
  • spring-boot-starter
<dependency>
    <groupId>com.github.freegeese</groupId>
    <artifactId>easy-mybatis-spring-boot-starter</artifactId>
    <version>1.0</version>
</dependency>

easy-mybatis's People

Contributors

zhangguangyong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.