We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2559280 commit 042e7beCopy full SHA for 042e7be
guide/faq.md
@@ -59,13 +59,11 @@ sidebarDepth: 0
59
}
60
```
61
62
-- 检查命名空间是否正常? 检查包扫描路径`typeAliasesPackage`是否正常?如果扫描不到,MP 无法进行预注入
63
-
64
- 检查是否指定了主键?如未指定,则会导致 `selectById` 相关 ID 无法操作,请用注解 `@TableId` 注解表 ID 主键。当然 `@TableId` 注解可以没有!但是你的主键必须叫 id(忽略大小写)
65
66
- SqlSessionFactory不要使用原生的,请使用MybatisSqlSessionFactory
67
68
+- 检查是否自定义了SqlInjector,是否复写了getMethodList()方法,该方法里是否注入了你需要的方法(可参考DefaultSqlInjector)
69
70
## 自定义 SQL 无法执行
71
0 commit comments