mybatisplus-plus
mybatisplus-plus copied to clipboard
没有自定义SqlSessionFactory,也加了@EnableMPP,使用updateByMultiId时仍然报Invalid bound statement (not found)
Service:
public interface ChooseCourseService extends IMppService<ChooseCourse> {
}
@Service
public class ChooseCourseServiceImpl extends MppServiceImpl<ChooseCourseMapper, ChooseCourse> implements ChooseCourseService {
}
Mapper
public interface ChooseCourseMapper extends MppBaseMapper<ChooseCourse> {
int insertChosenCourse(Integer userId, Integer courseId);
int deleteChosenCourse(Integer userId, Integer courseId);
ChooseCourse selectChooseCourseByUserIdAndCourseId(Integer userId,Integer courseId);
}
jdk 19 mpp-1.7.4
先确认一下与mp版本是否兼容