解决mybatis中:Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/tuniu/dao/UserDao.xml
在IDEA中右键在resources目录中创建文件是找不到的
因为他在目录文件中的结构是这样的,在一个文件夹中
我们需要一层一层创建文件夹:
SqlMapConfig.xml配置文件中用/来找
运行成功: