##使用MP的步骤: ####1、新建一个SpringBoot工程 ####2、指定maven的MP坐标 com.baomidou mybatis-plus-boot-starter 3.4.1 ####3、指定数据库驱动 mysql mysql-connector-java runtime ####4、创建实体类 ######1)定义属性 ######2)指定主键类型 ####5、创建Dao接口,需要继承BaseMapper<实体.class> ####6、主启动类上加入@MapperScan(value="指定mapper接口的包名) ####7、测试使用: ######1)注入mapper对象 ######2)调用方法,完成CRUD
-
Notifications
You must be signed in to change notification settings - Fork 0
miraizhao/mybatisplus
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published