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

最近项目用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文件有错(这个容易检查出来)

文章来自:http://blog.csdn.net/abcd_d_/article/details/46118209
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3