diff --git a/src/main/java/com/config.zip b/src/main/java/com/config.zip deleted file mode 100644 index 021424a..0000000 Binary files a/src/main/java/com/config.zip and /dev/null differ diff --git a/src/main/java/com/controller.zip b/src/main/java/com/controller.zip deleted file mode 100644 index ea11786..0000000 Binary files a/src/main/java/com/controller.zip and /dev/null differ diff --git a/src/main/java/com/dao.zip b/src/main/java/com/dao.zip deleted file mode 100644 index d071683..0000000 Binary files a/src/main/java/com/dao.zip and /dev/null differ diff --git a/src/main/java/com/entity.zip b/src/main/java/com/entity.zip deleted file mode 100644 index 312fe41..0000000 Binary files a/src/main/java/com/entity.zip and /dev/null differ diff --git a/src/main/java/resources/doc/sys_user.sql b/src/main/java/resources/doc/sys_user.sql new file mode 100644 index 0000000..2724ae7 --- /dev/null +++ b/src/main/java/resources/doc/sys_user.sql @@ -0,0 +1,41 @@ +/* + Navicat Premium Data Transfer + + Source Server : mysql-localhost + Source Server Type : MySQL + Source Server Version : 50616 + Source Host : localhost + Source Database : mybatis-plus + + Target Server Type : MySQL + Target Server Version : 50616 + File Encoding : utf-8 + + Date: 06/25/2017 20:53:49 PM +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for `sys_user` +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user`; +CREATE TABLE `sys_user` ( + `id` bigint(20) NOT NULL COMMENT '用户ID', + `name` varchar(50) DEFAULT NULL COMMENT '用户名', + `age` int(3) DEFAULT NULL COMMENT '用户年龄', + `type` int(1) DEFAULT '0' COMMENT '0、禁用 1、正常, 如果使用tinyint(1),mysql连接没加tinyInt1isBit=false,默认mysql驱动会把值转成boolean', + `ctime` datetime DEFAULT NULL COMMENT '自定义填充的创建时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统用户表'; + +-- ---------------------------- +-- Records of `sys_user` +-- ---------------------------- +BEGIN; +INSERT INTO `sys_user`(id,name,age,ctime,type) VALUES ('784972358981328902', 'Tom', '24', '2017-06-25 20:53:33', '1'); +INSERT INTO `sys_user`(id,name,age,ctime,type) VALUES ('784972358981328903', 'Jammy', '21', '2017-06-25 20:53:37', '1'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/src/main/java/resources/log4j.properties b/src/main/java/resources/log4j.properties new file mode 100644 index 0000000..93e617c --- /dev/null +++ b/src/main/java/resources/log4j.properties @@ -0,0 +1,19 @@ +log4j.rootLogger=INFO,CONSOLE,A +log4j.addivity.org.apache=false +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.Threshold=INFO +log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss} -%-4r [%t] %-5p %x - %m%n +log4j.appender.CONSOLE.Target=System.out +#log4j.appender.CONSOLE.charset=utf-8 +log4j.appender.CONSOLE.encoding=utf-8 +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.A=org.apache.log4j.DailyRollingFileAppender +log4j.appender.A.File=${catalina.home}/logs/yo_log/PurePro_ +log4j.appender.A.DatePattern=yyyy-MM-dd'.log' +log4j.appender.A.layout=org.apache.log4j.PatternLayout +log4j.appender.A.layout.ConversionPattern=[FH_sys] %d{yyyy-MM-dd HH\:mm\:ss} %5p %c{1}\:%L \: %m%n +log4j.logger.java.sql.ResultSet=INFO +log4j.logger.org.apache=INFO +log4j.logger.java.sql.Connection=INFO +log4j.logger.java.sql.Statement=INFO +log4j.logger.java.sql.PreparedStatement=INFO \ No newline at end of file diff --git a/src/main/java/resources/mybatis/mybatis-config.xml b/src/main/java/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..905bb28 --- /dev/null +++ b/src/main/java/resources/mybatis/mybatis-config.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/resources/spring/spring.xml b/src/main/java/resources/spring/spring.xml new file mode 100644 index 0000000..b0bac44 --- /dev/null +++ b/src/main/java/resources/spring/spring.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + \ No newline at end of file