怎么配置mapper-locations,配置 - com/mp/mapper/*找不到Mapper?
按视频目录建立mapper,在yml配置:
mybatis-plus: mapper-locations: - com/mp/mapper/*
这样报错org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.mp.dao.UserMapper.selectAll,如果把mapper放到resource目录,则下面配置可以:
mybatis-plus: mapper-locations: classpath*:mapper/*