Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 042e7be

Browse files
fix: "Invalid bound statement":
remove typeAliasesPackage add SqlInjector.getMethodList()
1 parent 2559280 commit 042e7be

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎guide/faq.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ sidebarDepth: 0
5959
}
6060
```
6161

62-
- 检查命名空间是否正常? 检查包扫描路径`typeAliasesPackage`是否正常?如果扫描不到,MP 无法进行预注入
63-
6462
- 检查是否指定了主键?如未指定,则会导致 `selectById` 相关 ID 无法操作,请用注解 `@TableId` 注解表 ID 主键。当然 `@TableId` 注解可以没有!但是你的主键必须叫 id(忽略大小写)
6563

6664
- SqlSessionFactory不要使用原生的,请使用MybatisSqlSessionFactory
6765

68-
66+
- 检查是否自定义了SqlInjector,是否复写了getMethodList()方法,该方法里是否注入了你需要的方法(可参考DefaultSqlInjector)
6967

7068
## 自定义 SQL 无法执行
7169

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /