报错1-无效的sql绑定:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xx.dblog.dao.mapper.StAlbumMapper.findAlbumById
报错2-找不到mapper路径
class path resource [mapper/] cannot be resolved to URL because it does not exist
解决
pom文件中改动如下

sqlSessionFactory中mybatis指定包路径配置

浙公网安备 33010602011771号