用idea第一次写MyBatis配置文件,发现报错URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs),如下: 即统一资源标识符没有注册 解决办法如下: 添加之后可以刷新一下文件,然后就可以成功了