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

来源:互联网 发布:开农村淘宝怎么赚钱 编辑:程序博客网 时间:2024/05/16 08:31

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

0 0
原创粉丝点击