org.xml.sax.SAXParseException: 文档根元素 "java-control-panel" 必须匹配 DOCT

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_35454116/article/details/88778549

Failed to parse mapping resource: ‘URL [jar:file:/C:/Program%20Files/Java/jdk1.8.0_201/jre/lib/deploy.jar!/com/sun/deploy/panel/settings.xml]’; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 35; 文档根元素 “java-control-panel” 必须匹配 DOCTYPE 根 “null”。

在application.properties中:

#mybatis配置文件扫描
mybatis.mapper-locations=classpath:com/**/.xml <这里出现了错误,在eclipse中这样可以使用,但在idea中要换一种格式。

  • 1
  • 2
  • 3
  • 4

正确的如下:


#mybatis配置文件扫描
#mybatis.mapper-locations=classpath:com/xc/pbxt/mapper/*.xml
上面写全   或者   下面部分写全
mybatis.mapper-locations=classpath*:com/xc/**/*.xml   

 
 
  • 1
  • 2
  • 3
  • 4
  • 5

但是不知道为什么这样,希望能有大佬解释一下,谢谢。

                                </div>
            <link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-095d4a0b23.css" rel="stylesheet">
                </div>
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值