Fork me on GitHub

02 2022 档案

摘要:Annotation Type NoArgsConstructor in short,@NoArgsConstructor 无参数。@RequiredArgsConstructor 自定义参数。@AllArgsConstructor AllField参数 @NonNull 非空校验。@NonNull 阅读全文
posted @ 2022-02-12 19:47 z_s_s 阅读(158) 评论(0) 推荐(0) 编辑
摘要:出于代码复用和简洁的考量,我们建议使用lombok 的注解@Slf4j 读者可以对比下文的传统写法。 In the development process , Printing the necessary logs is an essential part , And print the log , 阅读全文
posted @ 2022-02-12 18:49 z_s_s 阅读(93) 评论(0) 推荐(0) 编辑
摘要:All together now: A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, @Setter on all non-final fields, and @RequiredArgsConstructor! 阅读全文
posted @ 2022-02-12 17:14 z_s_s 阅读(57) 评论(0) 推荐(0) 编辑
摘要:今天细看了@PathVarible // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package org.springframework 阅读全文
posted @ 2022-02-12 14:19 z_s_s 阅读(40) 评论(0) 推荐(0) 编辑
摘要:"#"和“$”二者有何不同呢?动态语句是Mybatis的主要特点。在被定义进mapper里的参数被传递给XML后,Mybatis Dynamic SQL在查询前会动态地被解析。Mybatis 有两种语法:#{} and ${}。 简而言之,'#{}' 被解析成placeholder '?',‘${} 阅读全文
posted @ 2022-02-12 09:42 z_s_s 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Top 10 SQL Query Optimization Tips to Improve Database Performance 十条最优的提升数据库性能的查询语句优化技巧 SQL CREATE INDEX Statement 首先来到创建索引 The CREATE INDEX statemen 阅读全文
posted @ 2022-02-11 19:34 z_s_s 阅读(95) 评论(0) 推荐(0) 编辑
摘要:Mybatis 的特色功能就是动态语句。在使用 JDBC 的过程中,根据条件进行 SQL 的拼接麻烦且易错。 MyBatis 动态 SQL 的出现, 顺利地解决了这个麻烦。 MyBatis通过 OGNL 和 JSTL 来进行动态 SQL 的使用。 One of the most powerful f 阅读全文
posted @ 2022-02-11 18:11 z_s_s 阅读(117) 评论(0) 推荐(0) 编辑
摘要:Some partners think that only when there are multiple parameters in mybatis method can @ param annotation be added. In fact, this understanding is not 阅读全文
posted @ 2022-02-11 16:09 z_s_s 阅读(102) 评论(0) 推荐(0) 编辑
摘要:一、编程规约 (一)命名风格 1. 不能以_或$开始结束。 2.类名每个单词的首字母大写。 3.方法名、参数名、成员变量、局部变量满足“2.”的情况下首字母小写。 4.常量命名全部大写下划线隔开。 5.抽象类Abstract或者Base开头。测试类Test结尾。 6.数组这样定义int[] arra 阅读全文
posted @ 2022-02-10 20:31 z_s_s 阅读(204) 评论(0) 推荐(0) 编辑
摘要:The wildcard(通配符) declaration of List<? extends Number> foo3 means that any of these are legal assignments: List<? extends Number> foo3 = new ArrayLis 阅读全文
posted @ 2022-02-10 18:01 z_s_s 阅读(35) 评论(0) 推荐(0) 编辑
摘要:IntelliJ IDEA has keyboard shortcuts for most of its commands related to editing, navigation, refactoring, debugging, and pretty much everything else 阅读全文
posted @ 2022-02-09 11:53 z_s_s 阅读(57) 评论(0) 推荐(0) 编辑
摘要:javastruct:pom:0.1 failed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution i 阅读全文
posted @ 2022-02-09 11:01 z_s_s 阅读(1209) 评论(0) 推荐(0) 编辑
摘要:Java的方法分为实例方法,以及静态方法。它们本质上都相当于过程式语言的函数,但Java的实例方法隐含了个参数this。 我们常把支持函数式编程风格称为Lambda表达式。 匿名类方式编写: InnerClass ic = new InnerClass() { public int method(S 阅读全文
posted @ 2022-02-08 17:58 z_s_s 阅读(53) 评论(0) 推荐(0) 编辑
摘要:内部类:在一个类中定义另一个类。 1.通过内部类,一个类可以使用另一个类。内部类的外部类的成员变量在内部类中仍然有效。 2.不论是静态还是非静态的,内部类中的方法也可以调用外部类中的方法。内部类的类体中不可以声明类变量和类方法。 3.外部类可以在函数中创建的内部类对象。 4.如果内部类的权限是非私有 阅读全文
posted @ 2022-02-08 13:38 z_s_s 阅读(62) 评论(0) 推荐(0) 编辑
摘要:首先下载好Git https://git-scm.com/download/win 默认点击下一步 安装完成后,在开始菜单里找到“Git”->“Git Bash”。如果命令行窗口弹出,则表明安装成功。 $ git config --global user.name "Your Name" $ git 阅读全文
posted @ 2022-02-07 18:36 z_s_s 阅读(104) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示