From 56f4d656a41f19233cc805fcd6f141b142de7cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=BF=8A=E4=BC=9F?= <2421084001@qq.com> Date: Wed, 20 Dec 2023 12:22:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...00\346\254\241\344\275\234\344\270\232.md" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "12 \346\236\227\344\277\212\344\274\237/1219 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" diff --git "a/12 \346\236\227\344\277\212\344\274\237/1219 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" "b/12 \346\236\227\344\277\212\344\274\237/1219 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..f3c3d7d --- /dev/null +++ "b/12 \346\236\227\344\277\212\344\274\237/1219 \347\254\254\344\270\200\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,20 @@ +import org.junit.Test; + +public class Tap { + @Test + public void i(){ + System.out.println(111); + } +} +``` + +```java + + + junit + junit + 3.8.1 + test + + +maven对项目构建过程分为三套相互独立的生命周期,这里说的三套而且是相互独立, 这三套分别是: Clean Lifecycle :在进行真正的构建之前进行一些清理工作。 Default Lifecycle :构建的核心部分,编译,测试,打包,部署等等。 Site Lifecycle :生成项目报告,站点,发布站点。 \ No newline at end of file -- Gitee From 68ac3e0786e0a23ed9dd6ed1192dd161867c3fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=BF=8A=E4=BC=9F?= <2421084001@qq.com> Date: Mon, 25 Dec 2023 20:44:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...14\346\254\241\344\275\234\344\270\232.md" | 55 +++++++++++++++++++ ...11\346\254\241\344\275\234\344\270\232.md" | 34 ++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 "12 \346\236\227\344\277\212\344\274\237/1220 \347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" create mode 100644 "12 \346\236\227\344\277\212\344\274\237/1222 \347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.md" diff --git "a/12 \346\236\227\344\277\212\344\274\237/1220 \347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" "b/12 \346\236\227\344\277\212\344\274\237/1220 \347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..47f56b5 --- /dev/null +++ "b/12 \346\236\227\344\277\212\344\274\237/1220 \347\254\254\344\272\214\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into tb_user (username, age, gender) VALUES (#{username}, #{age}, #{gender}) + + + + delete from tb_user where id = #{id} + + + + update tb_user + set username = #{username}, + age = #{age}, + gender =#{gender} + where id = #{id}; + + + + diff --git "a/12 \346\236\227\344\277\212\344\274\237/1222 \347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.md" "b/12 \346\236\227\344\277\212\344\274\237/1222 \347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.md" new file mode 100644 index 0000000..7dd2c32 --- /dev/null +++ "b/12 \346\236\227\344\277\212\344\274\237/1222 \347\254\254\344\270\211\346\254\241\344\275\234\344\270\232.md" @@ -0,0 +1,34 @@ +# 笔记 + +```java +使用Mapper代理方式,必须满足以下要求: +1.定义与SQL映射文件同名的Mapper接口, +2.在 Mapper 接口中定义方法,方法名就是SQL映射文件中sql语句的id,并保持 +参数类型和返回值类型一致 + namespace:名称空间。必须是对应接口的全限定名 > + +