报错:Invalid bound statement (not found): com.ljxx.pts.dao.SitePriceMapper.selectByLike

发布时间 2023-11-22 09:13:01作者: 周文豪

如果你是Mybatis的话请注意yml或者properties文件里面的组件扫描

#指定mapper.xml的位置
mybatis.mapperLocations=classpath*:mapper/**/*Mapper.xml
mybatis.configuration.map-underscore-to-camel-case=true

注意:由于上面指定的是Mapper.xml,故xml文件不要携程Dao.xml