# producer php bin/hyperf.php gen:amqp-producer DemoProducer # consumer php bin/hyperf.php gen:amqp-consumer DemoConsumer # 使用 command 盗用 DemoProducer ...
分类:
其他好文 时间:
2020-09-16 12:43:45
阅读次数:
131
1:入参不同 excute() 传入的是 Runable, submit 传入的是 Callable 或 Runable 1):execute 方法源码 public void execute(Runnable command) { ... } 2):submit方法源码 public Future ...
分类:
其他好文 时间:
2020-09-16 12:14:48
阅读次数:
35
1.问题:当iframe的页面加载过再关闭之后,如果iframe的src没有发生变化,js不会重新加载,再次打开页面不会刷新; 2.解决方法:关闭页面时清空src,再次打开时即可重新加载最新数据。 $scope.updateCandidateUserValue = function (data) { ...
分类:
其他好文 时间:
2020-09-14 19:10:08
阅读次数:
31
#include<cstdio> #include<queue> #include<vector> using namespace std; const int N = 1010; queue<int> q; int w[N]; int result[N]; int main(){ int np,n ...
分类:
其他好文 时间:
2020-09-12 21:48:03
阅读次数:
38
```js // log /** * 找到第一个字母,若没有满足要求的返回null * @param {string} str */ function getFirstCharThatAppearsOnce(str) { let result let len = str.length let bla... ...
分类:
编程语言 时间:
2020-09-12 21:11:02
阅读次数:
39
instanceof严格来说是Java中的一个双目运算符,用来测试一个对象是否为一个类的实例,用法为: boolean result = obj instanceof Class 其中 obj 为一个对象,Class 表示一个类或者一个接口,当 obj 为 Class 的对象,或者是其直接或间接子类 ...
分类:
其他好文 时间:
2020-09-11 14:13:32
阅读次数:
33
每天 3 分钟,走上算法的逆袭之路。 前文合集 每日一道 LeetCode 前文合集 代码仓库 GitHub: https://github.com/meteor1993/LeetCode Gitee: https://gitee.com/inwsy/LeetCode 题目:验证回文串 题目来源:h ...
分类:
其他好文 时间:
2020-09-10 23:07:21
阅读次数:
43
Selenium WebDriver 一、浏览器操作方法 from selenium import webdriverdriver = webdriver.Firefox("驱动路径")driver.get("http://www.XX.com")?driver.maximize_window() ...
分类:
编程语言 时间:
2020-09-10 23:02:24
阅读次数:
59
废话少说,上代码 结构: 1application.properties web.upload-path=G:\study_tool\maven_workspace\images#\u9759\u6001\u8D44\u6E90\u6587\u4EF6spring.resources.static- ...
分类:
数据库 时间:
2020-09-08 21:05:22
阅读次数:
66
在javaweb请添加链接描述开发中,拦截器是一个必不可少的功能,那么拦截器是什么呢,他怎么使用呢,接下来我们一起看一下javaweb拦截器——interceptor。在Struts2框架中,拦截器interceptor是核心功能之一,Struts2是一个基于MVC设计模式的开源框架,在Struts2框架中,拦截器的主要工作内容是完成请求参数的解析,将页面表单参数赋给值栈中相应的属性,执行功能检验
分类:
编程语言 时间:
2020-09-08 20:55:26
阅读次数:
53