Mybatis:Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource
Bug分析:看错误可知,找不到mapper文件。首先我们查看配置文件(mybatis-config.xml)路径是否写正确。路径是没问题,配置的几种方式我也都试过了。于是将Xxxmapper.xml文件放到resource目录下,发现可以访问。Bug思考:就在想为什么放在dao层中写路径就访问不到了...
Exception in thread “main“ java.io.IOException: Could not find resource mybatis-config.xml
Exception in thread “main“ java.io.IOException: Could not find resource mybatis-config.xml
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。