We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b309852 commit 42dab7eCopy full SHA for 42dab7e
src/test/java/CodeGenerator.java
@@ -308,6 +308,10 @@ private static void addPlugin(Context context){
308
pluginConfiguration.setConfigurationType("org.mybatis.generator.plugins.SerializablePlugin");
309
context.addPluginConfiguration(pluginConfiguration);
310
}
311
+ //生成bean的toString插件
312
+ pluginConfiguration = new PluginConfiguration();
313
+ pluginConfiguration.setConfigurationType("org.mybatis.generator.plugins.ToStringPlugin");
314
+ context.addPluginConfiguration(pluginConfiguration);
315
316
317
0 commit comments