错误提示:
Request processing failed: nested exception is org.springframework.jdbc.BadSqlGrammarException
Unknown column 'e.dept_id' in 'on clause'
解决方案:
在配置文件src/main/resources/mapper/EmployeeMapper.xml中找到查询语句
“
FROM tbl_emp e
LEFT JOIN tbl_dept d ON d.`dept_id`=e.`d_id`
”
发现是其中的e和d写反了,e表格中才有"d_id",d表格中才有"dept_id"。