The content of element type "context" must match "(property*,plugin*,commentGenerator?
2015-05-28 09:53
2031 查看
最近项目用SSM框架,在利用mybatis generator反向生成数据库对应的model实体时,报如下错误:
The content of element type "context" must match
"(property*,plugin*,commentGenerator?,jdbcConnection,javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+)".
原因:
配置文件 generatorConfig.xml 里面的context的子元素必须按照它给出的顺序,如错误提示的match“……”部分。 当然也可能是你xml文件有错(这个容易检查出来)
The content of element type "context" must match
"(property*,plugin*,commentGenerator?,jdbcConnection,javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+)".
原因:
配置文件 generatorConfig.xml 里面的context的子元素必须按照它给出的顺序,如错误提示的match“……”部分。 当然也可能是你xml文件有错(这个容易检查出来)
相关文章推荐
- hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- hibernate The content of element type "session-factory" must match "(property*,mapping*,(class-cache
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
- [com.opensymphony.xwork2.util.DomHelper] The content of element type "package" must match
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "package" must match...
- xml之解决The content of element type "web-app" must match "(icon?,display......方案
- struts-config.xml配置文件顺序异常: The content of element type "struts-config" must match
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- hibernate:newclass.hbm.xml文件错误(the content of element type "class" must match "(meta*,column*,type?generator?...)
- 关于hibernate中报错”The content of element type "class" must match ......“的一点发现
- The content of element type "package" must match 随笔
- “The content of element type "package" must match "(result-types?,interceptors?,
- The content of element type "package" mustmatch "(result-types?,interceptors?,default-interceptor-re
- web.xml中提示错误The content of element type "web-app" must match