效仿原生AapplicationContext 简单的源码分为构造方法和getBean方法所以我们需要冲着些方法考虑 基本完成的代码如下 AapplicationContext 类如下 package cn.jiedada.spring; import java.io.File; import ja ...
分类:
编程语言 时间:
2021-05-25 18:09:55
阅读次数:
0
Mockito 使用 doThrow 让方法抛出异常 如果一个对象的方法的返回值是 void,那么不能用 when .. thenThrow 让该方法抛出异常 如果没有返回值, 下面这种写法是错误的: import org.junit.Test; import org.mockito.Mock; i ...
分类:
其他好文 时间:
2021-05-25 17:50:29
阅读次数:
0
使用ubuntu环境 安装miniconda3 查看 https://mirrors.bfsu.edu.cn/help 安装配置镜像等 安装需要的包 pip install jupyter d2l torch torchvision 下载代码并执行 wget https://zh-v2.d2l.ai ...
分类:
其他好文 时间:
2021-05-24 17:21:55
阅读次数:
0
原文地址:https://jingyan.baidu.com/article/49ad8bce97bd965834d8fa8b.html 刚使用centos7会发现,用以前的方式查看、打开和关闭防火墙都无效了。这是因为centos7的防火墙改用firewalld,而不再使用iptables了。下面就 ...
分类:
其他好文 时间:
2021-05-24 17:14:08
阅读次数:
0
import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.Resource; import org.springframework.core ...
分类:
编程语言 时间:
2021-05-24 17:06:24
阅读次数:
0
Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re ...
分类:
其他好文 时间:
2021-05-24 16:46:31
阅读次数:
0
#引言 原子操作是指不会被线程调度机制打断的操作;这种操作一旦开始,就一直运行到结束,中间不会有任何 context switch (切换到另一个线程)。通常所说的原子操作包括对非long和double型的primitive进行赋值,以及返回这两者之外的primitive。之所以要把它们排除在外是因 ...
分类:
编程语言 时间:
2021-05-24 16:35:44
阅读次数:
0
使用new直接创建 使用java反射创建 调用clone()方法,进行实例的拷贝 通过反序列化类获取 使用new直接创建 使用java反射创建 调用clone()方法,进行实例的拷贝 通过反序列化类获取 ...
分类:
编程语言 时间:
2021-05-24 15:30:51
阅读次数:
0
package org.jeecg.modules.system.util; import org.springframework.util.Assert; import java.time.Instant; import java.time.LocalDate; import java.time. ...
分类:
编程语言 时间:
2021-05-24 15:05:33
阅读次数:
0
DELIMITER $ CREATE TRIGGER `dw_realtime_i_a` AFTER INSERT ON `dw_realtime` FOR EACH ROW begin replace into dw_realtime(id,etl_dt) select id ,DATE_FORM ...
分类:
数据库 时间:
2021-05-24 14:33:58
阅读次数:
0