Advertisement

Spring Boot + Mybatis 插件功能 Intercepter

阅读量:

【SpringBoot + Mybatis系列

环境配置与准备工作

1. 数据库准备

以 mysql 作为实例数据库进行配置,并在其中创建一张新的数据表

复制代码
 CREATE TABLE `money` (

    
   `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
    
   `name` varchar(20) NOT NULL DEFAULT '' COMMENT '用户名',
    
   `money` int(26) NOT NULL DEFAULT '0' COMMENT '钱',
    
   `is_deleted` tinyint(1) NOT NULL DEFAULT '0',
    
   `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    
   `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    
   PRIMARY KEY (`id`),
    
   KEY `name` (`name`)

全部评论 (0)

还没有任何评论哟~