From 83e7722c490570d34121fdee13cee36a5d88a167 Mon Sep 17 00:00:00 2001 From: lsy <18332763730@163.com> Date: Sun, 26 Nov 2017 21:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A0=B9=E6=8D=AEfreemarker?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=94=9F=E6=88=90=E6=96=87=E4=BB=B6=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/generatorConfig.fm | 12 +++++------- .../src/main/resources/templates/mybatisGenerator.fm | 5 +++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 boot-starter/boot-starter-util/src/main/resources/templates/mybatisGenerator.fm diff --git a/boot-starter/boot-starter-util/src/main/resources/templates/generatorConfig.fm b/boot-starter/boot-starter-util/src/main/resources/templates/generatorConfig.fm index ce8f51a..6572adf 100644 --- a/boot-starter/boot-starter-util/src/main/resources/templates/generatorConfig.fm +++ b/boot-starter/boot-starter-util/src/main/resources/templates/generatorConfig.fm @@ -3,11 +3,9 @@ PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> - - - + @@ -26,10 +24,10 @@ + driverClass="${db.driverClassName}" + connectionURL="${db.url}" + userId="${db.url}" + password="{db.passworld}"> diff --git a/boot-starter/boot-starter-util/src/main/resources/templates/mybatisGenerator.fm b/boot-starter/boot-starter-util/src/main/resources/templates/mybatisGenerator.fm new file mode 100644 index 0000000..9a696e6 --- /dev/null +++ b/boot-starter/boot-starter-util/src/main/resources/templates/mybatisGenerator.fm @@ -0,0 +1,5 @@ +db.driverLocation=${db.driverLocation} +db.driverClassName=${db.driverClassName} +db.url=${db.url} +db.username=${db.url} +db.password=${db.passworld} \ No newline at end of file