Mybatis程序报错:Caused by: java.io.IOException: Could not find resource com/company/dao/UserMapper
可能配置文件的位置不对,参考这个吧
1、.yml文件下可能没加扫描xml文件配置:mapper-locations: classpath:/mapper/**.xml2、resource下建包是不是建错了,com/company/dao不是com.company.dao