首页 > 其他 > 详细

The content of element type "context" must match "(property*,plugin*,commentGenerator?

时间:2015-05-28 10:58:33      阅读:730      评论:0      收藏:0      [点我收藏+]

最近项目用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?

原文:http://blog.csdn.net/abcd_d_/article/details/46118209

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!