Skip to content

Commit 2627334

Browse files
committed
SpringBoot整合MyBatis教程Provider进阶(Update, Delete)
1 parent 4b268c7 commit 2627334

25 files changed

+780
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Spring整合学习中心
2222
- [SpringBoot整合MyBatis教程(PageHelper版)](springboot/springboot-mybatis/mybatis-pagehelper/DOC.md)
2323
- [SpringBoot整合MyBatis教程Provider进阶](springboot/springboot-mybatis/mybatis-provider/README.md)
2424
- [SpringBoot整合MyBatis教程Provider进阶(Insert)](springboot/springboot-mybatis/mybatis-provider/provider-insert/DOC.md)
25+
- [SpringBoot整合MyBatis教程Provider进阶(Update, Delete)](springboot/springboot-mybatis/mybatis-provider/provider-update-delete/DOC.md)
2526

2627
- [SpringCloud教程](springcloud/README.md)
2728

springboot/springboot-mybatis/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ SpringBoot MyBatis整合教程
1111
- [SpringBoot整合MyBatis教程(PageHelper版)](mybatis-pagehelper/DOC.md)
1212
- [SpringBoot整合MyBatis教程Provider进阶](mybatis-provider/README.md)
1313
- [SpringBoot整合MyBatis教程Provider进阶(Insert)](mybatis-provider/provider-insert/DOC.md)
14+
- [SpringBoot整合MyBatis教程Provider进阶(Update, Delete)](mybatis-provider/provider-update-delete/DOC.md)

springboot/springboot-mybatis/mybatis-provider/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ SpringBoot MyBatis整合教程
88
---
99

1010
- [SpringBoot整合MyBatis教程Provider进阶(Insert)](provider-insert/DOC.md)
11+
- [SpringBoot整合MyBatis教程Provider进阶(Update, Delete)](provider-update-delete/DOC.md)

springboot/springboot-mybatis/mybatis-provider/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<modules>
2020
<module>provider-insert</module>
21+
<module>provider-update-delete</module>
2122
</modules>
2223

2324
</project>

springboot/springboot-mybatis/mybatis-provider/provider-insert/DOC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ Caused by: org.apache.ibatis.binding.BindingException: Parameter 'arg0' not foun
474474

475475
```java
476476
@InsertProvider(type = UserInsertProvider.class, method = "insertModelByBatch")
477-
@Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
478-
Integer insertModelByBatch(@Param("list") Collection<UserModel> list);
477+
@Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
478+
Integer insertModelByBatch(@Param("list") Collection<UserModel> list);
479479
```
480480

481481
把我们原来的**List<UserModel> list**替换为**@Param("list") Collection<UserModel> list**

0 commit comments

Comments
 (0)