Git Product home page Git Product logo

tkmybatis-tempate's Introduction

tkmybatis-tempate

Tkmybatis是基于Mybatis框架开发的一个工具,通过调用它提供的方法实现对单表的数据操作,不需要写任何sql语句,这极大地提高了项目开发效率。

代码说明

  • tk-mybatis 为spring boot集成tkmybatis,在配置好文件后,生成在当前模块中,以防误操作覆盖原有类。
  • demo为示例模块,简单项目架构及测试。

使用方法

  1. tk-mybatis中生成相应mapperpojomaper.xml
  2. 复制到需要的模块中去

配置方法

20210320201546

  1. jdbc.properties中添加数据库配置

    jdbc.driverClass=com.mysql.cj.jdbc.Driver
    jdbc.connectionURL=jdbc:mysql://localhost:3306/database?serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
    jdbc.username=root
    jdbc.password=123456
    
  2. 从配置中取值配置数据库连接

  3. 配置实体类pojo路径

  4. 配置mapper.xml的路径

  5. 配置数据操作曾Mapper的路径

  6. 配置要生成的数据库

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.