From db8c06d55e0bcf28870641fafd446068958655df Mon Sep 17 00:00:00 2001 From: JeffLi1993 Date: Wed, 8 Feb 2017 10:40:36 +0800 Subject: [PATCH] =?UTF-8?q?Springboot=20=E6=95=B4=E5=90=88=20Mybatis=20?= =?UTF-8?q?=E7=9A=84=E5=AE=8C=E6=95=B4=20Web=20=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.properties | 9 +++++++++ .../src/main/resources/mybatis-config.xml | 12 ------------ 2 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 springboot-mybatis/src/main/resources/application.properties delete mode 100644 springboot-mybatis/src/main/resources/mybatis-config.xml diff --git a/springboot-mybatis/src/main/resources/application.properties b/springboot-mybatis/src/main/resources/application.properties new file mode 100644 index 0000000..c72309a --- /dev/null +++ b/springboot-mybatis/src/main/resources/application.properties @@ -0,0 +1,9 @@ +## 数据源配置 +spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootdb?useUnicode=true&characterEncoding=utf8 +spring.datasource.username=root +spring.datasource.password=123456 +spring.datasource.driver-class-name=com.mysql.jdbc.Driver + +## Mybatis 配置 +mybatis.typeAliasesPackage=org.spring.springboot.domain +mybatis.mapperLocations=classpath:mapper/*.xml \ No newline at end of file diff --git a/springboot-mybatis/src/main/resources/mybatis-config.xml b/springboot-mybatis/src/main/resources/mybatis-config.xml deleted file mode 100644 index df395d8..0000000 --- a/springboot-mybatis/src/main/resources/mybatis-config.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file