学习的是it黑马的视频
使用软件idea 环境jdk8
遇到的问题:mybatis错误 Could not find resource com/*/*Mapper.xml
在博客上找到的解决方法,大多部分人都应该能解决问题链接如下
mybatis错误——java.io.IOException: Could not find resource com/xxx/xxxMapper.xmld
但是并没有解决我的问题😓
继续研究了好几次,因为这个bug导致页面直接显示500一堆异常。
经过仔细核对mapper.xml和mybatis-config.xmld的地址,我试着把点换成“/”指向地址
<mapper resource="com/cx/mapper/BrandMapper.xml"/> <--类似这丫
成功解决!!!
一起继续努力学习啦!