SAXParseException: The content of element type “sqlMapConfig” 解决方案
来源:互联网 发布:nb998 知乎 编辑:程序博客网 时间:2024/05/18 13:26
异常:
Caused by: org.xml.sax.SAXParseException: The content of element type “sqlMapConfig” is incomplete, it must match “(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+”.
异常:
Caused by: org.xml.sax.SAXParseException: The content of element type "sqlMapConfig" must match "(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".
解析:
(1)The content of element type “sqlMapConfig” is incomplete---->SqlMapConfig.xml 不完整
(2)(properties?,settings?,resultObjectFactory?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+
此句话的意思就是properties,settings,resultObjectFactory,transactionManager标签可以出现0次或者1次,typeAlias,typeHandler标签可以出现0次或者多次,sqlMap标签至少出现1次。
解决方案:
从解析中我们可以看出,遇到上面的异常我们可以查看的SqlMapConfig.xml文件看我的配置文件中,是否少了以上必不可少的标签,以及标签的顺序是否正确。
- SAXParseException: The content of element type “sqlMapConfig” 解决方案
- org.xml.sax.SAXParseException: The content of element type “sqlMapConfig” must match “(properties?,s
- org.xml.sax.SAXParseException: The content of element type “sqlMapConfig” must match “(properties?,s
- The content of element type "sqlMapConfig" is incomplete, it must match "(properties?,settings?,resu
- org.xml.sax.SAXParseException The content of element type "package" must match "(result-types?,inter
- "org.xml.sax.SAXParseException: The content of element type "class" must match" 异常解决
- org.xml.sax.SAXParseException: The content of element type "configuration" must match
- mybatis-config.xml:报SAXParseException: The content of element type "configuration" must match
- The content of element type "struts-config" must match 解决方案
- ibatis:The content of element type "sqlMap" must match
- The content of element type "package" must match...
- The content of element type "package" must match 。。。。。。
- The content of element type "package" must match 随笔
- The content of element type "web-app" must match "
- The content of element type "web-app" must match
- the content of element type must match解决方法
- The content of element type "tag" must match
- Error parsing XML. org.xml.sax.SAXParseException: Element type "sqlMapConfig" must be declared出错解决方法
- 在Eclipse下如何安装插件
- EL表达式中的 c 标签(完美总结)
- linux c内嵌执行python
- ejb开发实例
- Windows下Qt连接Mysql数据库的方法,解决QSqlDatabase: QMYSQL driver not loaded 问题
- SAXParseException: The content of element type “sqlMapConfig” 解决方案
- boost中regex的使用
- 安装Apache后,提示no service install
- ELF文件格式及程序加载执行过程总汇(2)ELF Header
- 搬家了
- MMORPG游戏服务器端的设计(科普贴)
- openwrt顶层Makefile分析
- Java自学之路 - 马士兵
- MyEclipse插件介绍与下载