摘要: 如果你是Mybatis的话请注意yml或者properties文件里面的组件扫描 #指定mapper.xml的位置 mybatis.mapperLocations=classpath*:mapper/**/*Mapper.xml mybatis.configuration.map-underscor 阅读全文
posted @ 2023-11-22 09:08 周文豪 阅读(18) 评论(0) 推荐(0)
摘要: 报错如下: 解决办法: 在配置文件中指定mapper.xml的位置: mybatis.mapperLocations = classpath*:com/itheima/dao/mappers/*Mapper.xml,com/itheima/dao/secondMappers/*Mapper.xml, 阅读全文
posted @ 2023-11-22 09:07 周文豪 阅读(54) 评论(0) 推荐(0)