From 877d483e0c4ae9f695da06c0fc25bdf11fd2bd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Tue, 1 Mar 2022 15:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93SQ?= =?UTF-8?q?L=E6=96=87=E4=BB=B6=EF=BC=8C=E6=97=A0=E6=B3=95=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84Maven=E4=BE=9D=E8=B5=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E7=AE=80=E5=8D=95=E7=9A=84README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1.0.0/lifecycle-mapping-1.0.0.jar | Bin 0 -> 7027 bytes .../1.0.0/lifecycle-mapping-1.0.0.pom | 58 ++++++++++++++++++ .../maven-metadata-local.xml | 13 ++++ Others/README.md | 3 + Others/sql/flashsale.sql | 57 +++++++++++++++++ README.md | 3 + src/main/resources/mybatis-generator.xml | 12 ++-- 7 files changed, 140 insertions(+), 6 deletions(-) create mode 100644 Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar create mode 100644 Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom create mode 100644 Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/maven-metadata-local.xml create mode 100644 Others/README.md create mode 100644 Others/sql/flashsale.sql create mode 100644 README.md diff --git a/Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar b/Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..d91550b7bcf118715692f17f8da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Y4eg8SlNQds2epNzUPaF%vCTsnNo!_adpO-p%?Gt zcgpT(IL~ei2Q!f?Ix7Wc<9=z>ctUc=#gf-oRrSm4@`J&>3l|YOVM1O;rZX}!{1q@~WFDV|Dcvqv0BdL~< zlZ!{oT*?yGv+p4vzS_kIEAHJO8AK#vV#O zH?{Uw@r%X(d*v;S|D_cCoAO6;{i*(EI{#Cj6J&Lx{@XHtvHD-T_0R0=mm55^f1UpA zB>t78{oU8!8;oDR_z8da_1AXem#5z!!)@XDF$fT@uWfD^-`^JZdl~w + 4.0.0 + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + maven-plugin + + lifecycle-mapping Maven Dummy Plugin + Dummy Plugin, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=367870 + and http://stackoverflow.com/questions/7905501/get-rid-of-pom-not-found-warning-for-org-eclipse-m2elifecycle-mapping/ + + https://bugs.eclipse.org/bugs/show_bug.cgi?id=367870 + + UTF-8 + + + + + org.apache.maven + maven-plugin-api + 2.0 + + + junit + junit + 4.10 + test + + + + + + + org.apache.maven.plugins + maven-plugin-plugin + 2.5.1 + + lifecycle-mapping + + + + generated-helpmojo + + helpmojo + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + diff --git a/Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/maven-metadata-local.xml b/Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/maven-metadata-local.xml new file mode 100644 index 0000000..8da14ef --- /dev/null +++ b/Others/MavenRepo/org.eclipse.m2e.lifecycle-mapping/maven-metadata-local.xml @@ -0,0 +1,13 @@ + + + org.eclipse.m2e + lifecycle-mapping + + 1.0.0 + 1.0.0 + + 1.0.0 + + 20220301062417 + + diff --git a/Others/README.md b/Others/README.md new file mode 100644 index 0000000..e32f54a --- /dev/null +++ b/Others/README.md @@ -0,0 +1,3 @@ +MavenRepo: 不存在的Maven依赖,需要手动复制到本地Maven仓库中 + +sql: 项目数据库文件 \ No newline at end of file diff --git a/Others/sql/flashsale.sql b/Others/sql/flashsale.sql new file mode 100644 index 0000000..2b2cbc3 --- /dev/null +++ b/Others/sql/flashsale.sql @@ -0,0 +1,57 @@ +/* + Navicat Premium Data Transfer + + Source Server : localhost MySQL 5.7 + Source Server Type : MySQL + Source Server Version : 50726 + Source Host : localhost:3306 + Source Schema : flashsale + + Target Server Type : MySQL + Target Server Version : 50726 + File Encoding : 65001 + + Date: 01/03/2022 15:16:20 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for user_info +-- ---------------------------- +DROP TABLE IF EXISTS `user_info`; +CREATE TABLE `user_info` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `gender` tinyint(4) NOT NULL DEFAULT 0 COMMENT '1代表男性,2代表女性', + `age` int(11) NOT NULL DEFAULT 0, + `telephone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `register_mode` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '通过手机号注册,通过微信注册,通过支付宝注册', + `third_party_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of user_info +-- ---------------------------- +INSERT INTO `user_info` VALUES (1, '第一个用户', 2, 18, '110', 'phone', ''); + +-- ---------------------------- +-- Table structure for user_password +-- ---------------------------- +DROP TABLE IF EXISTS `user_password`; +CREATE TABLE `user_password` ( + `id` int(11) NOT NULL, + `encrpt_password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `user_id` int(11) NOT NULL DEFAULT 0, + PRIMARY KEY (`id`) USING BTREE, + INDEX `user_id`(`user_id`) USING BTREE, + CONSTRAINT `user_password_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user_info` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of user_password +-- ---------------------------- + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/README.md b/README.md new file mode 100644 index 0000000..daa3054 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# 电商基础秒杀项目 + +基于 SpringBoot,数据库使用MySQL \ No newline at end of file diff --git a/src/main/resources/mybatis-generator.xml b/src/main/resources/mybatis-generator.xml index ceeb611..a870ab0 100644 --- a/src/main/resources/mybatis-generator.xml +++ b/src/main/resources/mybatis-generator.xml @@ -37,12 +37,12 @@ - - - - - - + + + + + +