我在 Eclipse 中使用带有 maven 的 mybatis 生成器。
我想对生成的类、字段和方法添加注释。
我将 coomentGenerator 配置如下,但它没有添加任何评论。
<commentGenerator>
<property name="suppressAllComments" value="false" />
<property name="addRemarkComments" value="true" />
</commentGenerator>
我的数据库是oracle,表和字段都有注释。
我确认 all_tab_comments、all_col_comments 对我的表和列有评论。
我使用 1.3.5 版本的 mybatis-generator-maven-plugin