Browse Source

再提交一波

miemie 7 years ago
parent
commit
9ad335a5a0

+ 4 - 6
mybatis-plus/src/test/resources/mysql/spring-test-mysql.xml

@@ -1,11 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.springframework.org/schema/beans"
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
-
-    <!--<context:component-scan base-package="com.baomidou.mybatisplus.test.h2.service"/>-->
-
-    <bean name="/DBConfig" class="com.baomidou.mybatisplus.test.mysql.config.DBConfig"/>
-    <bean name="/MybatisPlusConfig" class="com.baomidou.mybatisplus.test.mysql.config.MybatisPlusConfig"/>
+       xmlns:context="http://www.springframework.org/schema/context"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
 
+    <context:component-scan base-package="com.baomidou.mybatisplus.test.mysql.config"/>
 </beans>

+ 15 - 15
mybatis-plus/src/test/resources/mysql/test_data.ddl.sql

@@ -1,19 +1,19 @@
 CREATE TABLE IF NOT EXISTS tb_test_data_logic (
-  id              BIGINT primary key,
-  test_int        integer,
-  test_str        varchar(50),
-  test_double     double,
-  test_boolean    tinyint(1),
-  test_date       date,
-  test_time       time,
-  test_date_time  datetime,
-  test_timestamp  timestamp,
-  create_datetime datetime,
-  update_datetime datetime,
-  deleted         tinyint(1) default 0
+    id              BIGINT primary key,
+    test_int        integer,
+    test_str        varchar(50),
+    test_double     double,
+    test_boolean    tinyint(1),
+    test_date       date,
+    test_time       time,
+    test_date_time  datetime,
+    test_timestamp  timestamp,
+    create_datetime datetime,
+    update_datetime datetime,
+    deleted         tinyint(1) default 0
 )
-  ENGINE = innodb
-  DEFAULT CHARSET = utf8;
+    ENGINE = innodb
+    DEFAULT CHARSET = utf8;
 CREATE TABLE IF NOT EXISTS tb_test_data (
     id              BIGINT primary key,
     test_int        integer,
@@ -28,4 +28,4 @@ CREATE TABLE IF NOT EXISTS tb_test_data (
     update_datetime datetime
 )
     ENGINE = innodb
-DEFAULT CHARSET = utf8;
+    DEFAULT CHARSET = utf8;