原型模式 案例 公司使用自行开发的一套系统进行日常工作办理,但在使用过程中,我们需要每周上传周报总结工作内容。基于此,我们简单的通过代码模拟这一过程。 1.首先定义一个周报类: public class WeeklyReport { // 填写人 private String name; // 周报 ...
分类:
其他好文 时间:
2020-11-01 22:02:19
阅读次数:
18
-- 查询具体表的分区目录 select t1.NAME, t2.TBL_NAME,t4.PART_NAME, t3.LOCATION from DBS t1, TBLS t2 , SDS t3 ,PARTITIONSt4 where t1.DB_ID=t2.DB_ID and t4.SD_ID = ...
分类:
其他好文 时间:
2020-11-01 21:29:48
阅读次数:
24
环境:k8s v1.18.5 网络环境: calico,通过nodePort方式对外提供nginx服务 一、 创建nginx的service 1.定义nginx的service(nginx-service.yml) apiVersion: v1 kind: Service metadata: nam ...
分类:
其他好文 时间:
2020-11-01 20:44:47
阅读次数:
30
location /image { rewrite ^/image/(.*)$ https://xxx.com/image/$1; } 将历史资源(附件)上传到对象存储,替换对象存储的网址即可 ...
分类:
其他好文 时间:
2020-10-29 10:46:48
阅读次数:
29
Pip简易使用 使用pip list命令就可以发现自己电脑里所安装库的名字。如图展示的出来的有package、Version、Location三列,package是下载的python库名,Version是库的版本信息,Location是指库所在计算机里的安装位置,一般情况下只有非pip instal ...
分类:
编程语言 时间:
2020-10-29 09:31:20
阅读次数:
25
缓存 配置方法 内存缓存 在setting.py 添加缓存配置 # 项目名/setting。py # 内存缓存 CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION' ...
分类:
系统相关 时间:
2020-10-24 11:52:13
阅读次数:
38
BOM 页面的事件 window.onload 页面加载完毕后触发 window.onunload 页面关闭后触发 window.onbeforeunload 页面关闭之前触发 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" ...
分类:
其他好文 时间:
2020-10-22 22:14:14
阅读次数:
29
Does the bug always move to a new location? Explain. 不会,虫子真会朝着一个有小格子存在的地方,而且这个格子是空的,或者它上面有一朵红花,只有这个情况它才会移动。 解释:该行为被方法act()限制,所以出现这样的行走方式 In which dire ...
分类:
其他好文 时间:
2020-10-21 20:30:04
阅读次数:
21
介绍 AOP,aspect oriented programing,面向切面编程。 动态代理:基于JDK和基于第三方cglib Joinpoint(连接点):可以被拦截的点 Pointcut(切入点):被拦截的点 Advice(通知/增强):对连接点进行改变 Target(目标对象):代理的目标对象 ...
分类:
编程语言 时间:
2020-10-13 16:54:39
阅读次数:
25
参考:https://blog.csdn.net/giser_whu/article/details/51485635 CompanyIndex({ _with: 'location' }) .then((res) => { if (res.data && res.success) { // thi ...
分类:
编程语言 时间:
2020-10-10 18:06:34
阅读次数:
55