原因
- 检查xml namespace 路劲是否正确。
<mapper namespace="net.xuanyutech.cims.tpm.dao.FactoryLayoutMapper">
- resultType 和 resultMap 是否正确
- 检查包路径(红色字体路径是正确的)
红色字体的路径是:D:\IdeaWorkSpaces\cimsweb\tpm\src\main\resources\net\xuanyutech\cims\tpm\dao\FactoryLayoutMapper.xml
绿色字体的路径是:
D:\IdeaWorkSpaces\cimsweb\tpm\src\main\resources\net.xuanyutech.cims.tpm.dao\FactoryLayoutMapper.xml
- 检查扫描路径