一、grep命令和正则表达式的简介1、grep(GlobalsearchREgularexpressionandPrintouttheline),即全局搜索正则表达式并打印出匹配的行,它是Linux系统中一个强大的文本搜索工具,它根据用户指定的“模式(pattern)”对目标文本进行过滤,显示被模式匹配到的行;2、正则表达式是由..
分类:
系统相关 时间:
2015-02-12 10:55:28
阅读次数:
286
interface page { void Render(); } class pageA implements page { @Override public void Render() { System.out.println("I am " + this.getClass().getName(...
分类:
编程语言 时间:
2015-02-11 23:16:31
阅读次数:
242
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2015-02-11 20:33:41
阅读次数:
153
一、grep命令和正则表达式的简介1、grep(GlobalsearchREgularexpressionandPrintouttheline),即全局搜索正则表达式并打印出匹配的行,它是Linux系统中一个强大的文本搜索工具,它根据用户指定的“模式(pattern)”对目标文本进行过滤,显示被模式匹配到的行;2、正则表达式是由..
分类:
系统相关 时间:
2015-02-11 11:02:23
阅读次数:
207
一、grep命令和正则表达式的简介1、grep(GlobalsearchREgularexpressionandPrintouttheline),即全局搜索正则表达式并打印出匹配的行,它是Linux系统中一个强大的文本搜索工具,它根据用户指定的“模式(pattern)”对目标文本进行过滤,显示被模式匹配到的行;2、正则表达式是由..
分类:
系统相关 时间:
2015-02-11 11:01:34
阅读次数:
160
由于工作的原因,我最近在弄数据库是mongoDB的java项目。发现项目中的时间出现问题,每次保存数据的时候时间都会少掉8个小时。
解决办法
在设置时间变量前添加注解
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
pattern是时间格式设置(HH表示24小时制,hh表示12小时制),timezone是时区...
分类:
数据库 时间:
2015-02-10 18:44:45
阅读次数:
204
一、策略(Strategy)模式策略模式的用意是针对一组算法,将每一个算法封装到具有共同接口的独立的类中,从而使得它们可以相互替换。策略模式使得算法可以在不影响到客户端的情况下发生变化。假 设现在要设计一个贩卖各类书籍的电子商务网站的购物车(Shopping Cat)系统。一个最简单的情况就是把所有...
分类:
其他好文 时间:
2015-02-10 15:15:36
阅读次数:
255
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-02-10 15:12:10
阅读次数:
138
配置struts2 默认欢迎页的几种办法:1、首先需要明确的是struts过滤器配置映射的模式是路径匹配还是扩展匹配,如果url-pattern配置为/*,如果不做特殊处理,是不会转到welcome-file-list设置的文件的。这种情况,有两种办法解决默认转向:a.一种是在struts.xml中...
分类:
其他好文 时间:
2015-02-10 14:43:50
阅读次数:
366
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2015-02-10 14:40:11
阅读次数:
165