org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studentServiceImpl': Unsatisfied dependency expressed through field 'studentMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentMapper'
错误原因:
因为多次用Mybatis Generator自动生成代码的时候,产生了重复的代码
在*mapper.xml
文件中可以找到两段同名的selectByExampleWithRowbounds
: