您的位置:首页 > 运维架构

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文件有错(这个容易检查出来)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐