From e62ebc3db2a7730da86da35e9fec3ce96ac2b392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9C=B2=E7=A4=BC?= Date: Wed, 10 Apr 2019 21:18:39 +0800 Subject: [PATCH 1/2] replace parameterMap with parameterType --- .../src/main/resources/mapper/CityMapper.xml | 6 ++---- .../src/main/resources/mapper/cluster/CityMapper.xml | 2 -- .../src/main/resources/mapper/master/UserMapper.xml | 2 -- .../src/main/resources/mapper/CityMapper.xml | 6 ++---- springboot-mybatis/src/main/resources/mapper/CityMapper.xml | 2 -- springboot-restful/src/main/resources/mapper/CityMapper.xml | 6 ++---- 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/springboot-freemarker/src/main/resources/mapper/CityMapper.xml b/springboot-freemarker/src/main/resources/mapper/CityMapper.xml index 1855f82..f720f32 100644 --- a/springboot-freemarker/src/main/resources/mapper/CityMapper.xml +++ b/springboot-freemarker/src/main/resources/mapper/CityMapper.xml @@ -8,8 +8,6 @@ - - id, province_id, city_name, description @@ -27,14 +25,14 @@ from city - + insert into city(id,province_id,city_name,description) values (#{id},#{provinceId},#{cityName},#{description}) - + update city set diff --git a/springboot-mybatis-mutil-datasource/src/main/resources/mapper/cluster/CityMapper.xml b/springboot-mybatis-mutil-datasource/src/main/resources/mapper/cluster/CityMapper.xml index 6b35457..13ce8f3 100644 --- a/springboot-mybatis-mutil-datasource/src/main/resources/mapper/cluster/CityMapper.xml +++ b/springboot-mybatis-mutil-datasource/src/main/resources/mapper/cluster/CityMapper.xml @@ -8,8 +8,6 @@ - - id, province_id, city_name, description diff --git a/springboot-mybatis-mutil-datasource/src/main/resources/mapper/master/UserMapper.xml b/springboot-mybatis-mutil-datasource/src/main/resources/mapper/master/UserMapper.xml index 9f21ced..833ae1a 100644 --- a/springboot-mybatis-mutil-datasource/src/main/resources/mapper/master/UserMapper.xml +++ b/springboot-mybatis-mutil-datasource/src/main/resources/mapper/master/UserMapper.xml @@ -7,8 +7,6 @@ - - id, user_name, description diff --git a/springboot-mybatis-redis/src/main/resources/mapper/CityMapper.xml b/springboot-mybatis-redis/src/main/resources/mapper/CityMapper.xml index 47528bf..13bae45 100644 --- a/springboot-mybatis-redis/src/main/resources/mapper/CityMapper.xml +++ b/springboot-mybatis-redis/src/main/resources/mapper/CityMapper.xml @@ -8,8 +8,6 @@ - - id, province_id, city_name, description @@ -27,14 +25,14 @@ from city - + insert into city(id,province_id,city_name,description) values (#{id},#{provinceId},#{cityName},#{description}) - + update city set diff --git a/springboot-mybatis/src/main/resources/mapper/CityMapper.xml b/springboot-mybatis/src/main/resources/mapper/CityMapper.xml index 82a07d1..8ebf724 100644 --- a/springboot-mybatis/src/main/resources/mapper/CityMapper.xml +++ b/springboot-mybatis/src/main/resources/mapper/CityMapper.xml @@ -8,8 +8,6 @@ - - id, province_id, city_name, description diff --git a/springboot-restful/src/main/resources/mapper/CityMapper.xml b/springboot-restful/src/main/resources/mapper/CityMapper.xml index 1855f82..f720f32 100644 --- a/springboot-restful/src/main/resources/mapper/CityMapper.xml +++ b/springboot-restful/src/main/resources/mapper/CityMapper.xml @@ -8,8 +8,6 @@ - - id, province_id, city_name, description @@ -27,14 +25,14 @@ from city - + insert into city(id,province_id,city_name,description) values (#{id},#{provinceId},#{cityName},#{description}) - + update city set From 7b80306bf8e2781f7536183df0dc0262daaeeaa7 Mon Sep 17 00:00:00 2001 From: liululee Date: Wed, 10 Apr 2019 21:28:21 +0800 Subject: [PATCH 2/2] replace parameterMap with parameterType --- .../src/main/resources/application.properties | 2 +- .../springboot-properties.iml | 61 ------------------- 2 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 springboot-properties/springboot-properties.iml diff --git a/springboot-freemarker/src/main/resources/application.properties b/springboot-freemarker/src/main/resources/application.properties index 48f9adb..ee82891 100644 --- a/springboot-freemarker/src/main/resources/application.properties +++ b/springboot-freemarker/src/main/resources/application.properties @@ -1,7 +1,7 @@ ## 数据源配置 spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springbootdb?useUnicode=true&characterEncoding=utf8 spring.datasource.username=root -spring.datasource.password=XX +spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.jdbc.Driver ## Mybatis 配置 diff --git a/springboot-properties/springboot-properties.iml b/springboot-properties/springboot-properties.iml deleted file mode 100644 index 33f8196..0000000 --- a/springboot-properties/springboot-properties.iml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file