Loading

摘要: Mybatis 准备工作 使用 MyBatis 必须导入其 jar 包,在 maven 中的 pom.xml 中声明以下依赖。 <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java< 阅读全文
posted @ 2021-09-25 16:13 xtyuns 阅读(29) 评论(0) 推荐(0) 编辑
摘要: MySQL 中的 datetime 对应 Java 中的 java.util.date, 如果使用 java.sql.date 时分秒将会丢失。 阅读全文
posted @ 2021-09-24 19:48 xtyuns 阅读(4145) 评论(0) 推荐(1) 编辑
摘要: IDEA 中添加 MyBatis 配置模板 起因 每次编写 Mybatis 都需要复制一份 xml 配置文件和 mapper 配置文件,十分麻烦,所以就借助 IDEA 中的 Liva Template 编写了一份 MyBatis 的模板文件来帮助我们更加快捷的进行开发。 效果演示 配置步骤 首先打开 阅读全文
posted @ 2021-09-24 15:04 xtyuns 阅读(758) 评论(0) 推荐(0) 编辑
摘要: # Maven ## 相关文章 pom.xml 中 build 的配置: [Maven之pom.xml文件中的Build配置_剑小纯的夜话白鹭-CSDN博客](https://blog.csdn.net/xiaoyao2246/article/details/88355463) ## 概念 ### 阅读全文
posted @ 2021-09-23 21:27 xtyuns 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Junit 5 总体架构 使用 Junit 5 如何在 Maven 中配置 Junit 5 的依赖: 咱的Maven项目能用Junit5吗? - 剑道子羽 - 博客园 案例演示: Junit5 新特性你用过多少? - 云+社区 - 腾讯云 系列教程: JUnit5学习之八:综合进阶(终篇)_程序员欣 阅读全文
posted @ 2021-09-23 09:27 xtyuns 阅读(52) 评论(0) 推荐(0) 编辑
摘要: ## 代码示例 ```java public static void main(String[] args) { int value = 0; IntStream.range(0, 10).forEach(i -> value++); System.out.println(value); } ``` 阅读全文
posted @ 2021-09-19 18:49 xtyuns 阅读(1211) 评论(0) 推荐(2) 编辑
摘要: 推荐阅读文章: - [(很详细的使用教程) servlet入门+request和response+jackson - 一路繁花似锦绣前程 - 博客园](https://www.cnblogs.com/linding/p/13577955.html) - [JSP、EL和JSTL - 一路繁花似锦绣前 阅读全文
posted @ 2021-09-14 10:06 xtyuns 阅读(34) 评论(0) 推荐(0) 编辑
摘要: ## 使用方法 一、Child.class ```java package proxys; public interface Child { void eat(); } ``` 二、ChildImpl.class ```java package proxys; public class ChildI 阅读全文
posted @ 2021-08-20 15:52 xtyuns 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 一、懒汉式 ```java public class ASingleton { private static ASingleton INSTANCE; private ASingleton() {} /** * 懒汉: 延迟初始化, 线程不安全的单例模式 * @return 对象实例 */ publ 阅读全文
posted @ 2021-08-20 10:47 xtyuns 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 执行下面这段 Java 代码,它的输出结果为:`调用子类的 addAge(), age=1` ```Java public class ClassInit { public static void main(String[] args) { Son son = new Son(); } } clas 阅读全文
posted @ 2021-07-31 14:41 xtyuns 阅读(110) 评论(0) 推荐(0) 编辑
摘要: ```javascript 1.3335.toFixed(3); // 1.333 1.33335.toFixed(4); //1.3334 ``` 无论是用奇数进位法,还是偶数进位法,都无法正确的解释 js 中 toFixed() 方法。 相关阅读: [为什么我说 Math.round 和 toF 阅读全文
posted @ 2021-07-07 20:22 xtyuns 阅读(120) 评论(0) 推荐(0) 编辑