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

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

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

posted on 2023-11-22 09:08  周文豪  阅读(9)  评论(0编辑  收藏  举报