# pgrep cron947[root@localhost cron]# pgrep --help Usage: pgrep [options] <pattern> Options: -d, --delimiter <string> specify output delimiter -l, --l ...
分类:
其他好文 时间:
2019-12-18 11:04:43
阅读次数:
122
public class AgentUserKit { private static String pattern = "^Mozilla/\\d\\.\\d\\s+\\(+.+?\\)"; private static String pattern2 = "\\(+.+?\\)"; private ...
分类:
其他好文 时间:
2019-12-17 22:47:28
阅读次数:
196
(pattern) : 匹配 pattern 并获取这一匹配,所获取的匹配可以从产生的 Matches 集合得到。(?:pattern) :匹配 pattern 但不获取匹配结果,也就是说这是一个非获取匹配,不进行存储供以后使用。(?=pattern) :正向预查,在任何匹配 pattern 的字符 ...
分类:
其他好文 时间:
2019-12-17 18:23:13
阅读次数:
75
多张表之间的关联 select * from vas_user, vas_user_order where vas_user.userid=vas_user_order.userid and vas_user.accountidentity like 'ykt%' and vas_user_orde ...
分类:
数据库 时间:
2019-12-17 10:32:15
阅读次数:
122
模式定义 命令模式(Command Pattern):将一个请求封装为一个对象,从而使我们可用不同的请求对客户进行参数化;对请求排队或者记录请求日志,以及支持可撤销的操作。命令模式是一种对象行为型模式,其别名为动作(Action)模式或事务(Transaction)模式。 模式动机 命令模式可以对发 ...
分类:
其他好文 时间:
2019-12-16 22:11:56
阅读次数:
106
这个在jsp中很容易实现,但是springBoot不推荐使用jsp,建议使用thymeleaf,下面是在thymeleaf中引入界面的方法 1.修改配置文件 spring: mvc: static-path-pattern: /static/** thymeleaf: prefix: classpa ...
分类:
其他好文 时间:
2019-12-16 22:06:05
阅读次数:
374
public void exportExcel(String title, String[] headers, Collection<T> dataset, OutputStream out, String pattern,HSSFWorkbook workbook) { // 声明一个工作薄 生成 ...
分类:
编程语言 时间:
2019-12-16 19:26:37
阅读次数:
128
1 def log(text=None): 2 3 if isinstance(text, str): 4 def decorator(func): 5 @functools.wraps(func) 6 def wrapper(*args, **kw): 7 print('%s %s():' % ( ...
分类:
编程语言 时间:
2019-12-16 19:21:03
阅读次数:
123
但是如下图中新增客户和编辑客户视图重复内容太多了,所以我想做一个整合。否则到时候要改代码的话要改很多,不方便。 (1)crm/urls.py中:两个url对应一个视图函数 from django.conf.urls import url,includefrom crm import viewsurl ...
分类:
其他好文 时间:
2019-12-16 13:13:21
阅读次数:
67
MessageFormat.format(String pattern, Object ... arguments) 以下为代码实现: 其实这个实现就是使用了MessageFormat这个类; String content = "ab,cc,{名称},{密码},{日期},dd,ff"; String ...
分类:
其他好文 时间:
2019-12-16 09:27:51
阅读次数:
126