From 449f2871f2fe18f1df97970782862bace30d9267 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Mon, 17 Oct 2016 16:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8F=96mybatis=20generator=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/cms-dao/src/main/resources/generatorConfig.xml | 8 ++++---- cms/cms-dao/src/main/resources/jdbc.properties | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/cms/cms-dao/src/main/resources/generatorConfig.xml b/cms/cms-dao/src/main/resources/generatorConfig.xml index da8b75e4..a36924d2 100644 --- a/cms/cms-dao/src/main/resources/generatorConfig.xml +++ b/cms/cms-dao/src/main/resources/generatorConfig.xml @@ -6,7 +6,7 @@ - + @@ -39,13 +39,13 @@ password="${jdbc.password}" /> - + - + - + diff --git a/cms/cms-dao/src/main/resources/jdbc.properties b/cms/cms-dao/src/main/resources/jdbc.properties index 86f767dc..239ed05c 100644 --- a/cms/cms-dao/src/main/resources/jdbc.properties +++ b/cms/cms-dao/src/main/resources/jdbc.properties @@ -1,4 +1,9 @@ jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc\:mysql\://127.0.0.1\:3306/zheng?useUnicode\=true&characterEncoding\=utf-8&autoReconnect\=true jdbc.username=root -jdbc.password=123456 \ No newline at end of file +jdbc.password=123456 + +classPathEntry=D:/mysql-connector-java-5.1.34.jar +generator.javaModelGenerator.targetPackage=com.zheng.cms.dao.model +generator.sqlMapGenerator.targetPackage=com.zheng.cms.dao.mapper +generator.javaClientGenerator.targetPackage=com.zheng.cms.dao.mapper \ No newline at end of file