From 03116e71c0daabee7b31a97543e7ed73e64331ec Mon Sep 17 00:00:00 2001 From: hewei Date: Mon, 14 Aug 2017 18:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=B7=A5=E5=85=B7=E9=A9=BC?= =?UTF-8?q?=E5=B3=B0=E5=91=BD=E5=90=8Dconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/generator/plugins/tools/MyBatisGeneratorTool.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/itfsw/mybatis/generator/plugins/tools/MyBatisGeneratorTool.java b/src/test/java/com/itfsw/mybatis/generator/plugins/tools/MyBatisGeneratorTool.java index 61275a5..47e83a1 100644 --- a/src/test/java/com/itfsw/mybatis/generator/plugins/tools/MyBatisGeneratorTool.java +++ b/src/test/java/com/itfsw/mybatis/generator/plugins/tools/MyBatisGeneratorTool.java @@ -137,6 +137,7 @@ public class MyBatisGeneratorTool { public SqlSession getSqlSession() throws IOException, ClassNotFoundException { org.apache.ibatis.session.Configuration config = new org.apache.ibatis.session.Configuration(); config.setCallSettersOnNulls(true); // 设计null调用setter方法 + config.setMapUnderscoreToCamelCase(true); // 驼峰命名支持 // 设置mapper config.addMappers(targetPackage);