SqlSession was not registered for synchronization


解决方法:一、在方法传参时,加param参数标识,如:countNum(@Param("departid")String departid);

                  二、在方法传参时,把参数换成map或对象。

相关