一、Filter的部署——注册Filter testFitler
org.test.TestFiter word_file /WEB-INF/word.txt 1、用于为过滤器指定一...
分类:
编程语言 时间:
2014-05-27 01:37:02
阅读次数:
310
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 ...
分类:
其他好文 时间:
2014-05-24 04:13:54
阅读次数:
284
访问者模式(Visitor
Pattern)是GoF提出的23种设计模式中的一种,属于行为模式。定义(源于GoF《Design
Pattern》):表示一个作用于某对象结构中的各元素的操作。它使你可以在不改变各元素类的前提下定义作用于这些元素的新操作。从定义可以看出结构对象是使用访问者模式必备条件,...
分类:
其他好文 时间:
2014-05-23 10:23:03
阅读次数:
220
想了个挺二的例子
剑客是刺客,是被锁定的目标,...
分类:
编程语言 时间:
2014-05-22 09:39:57
阅读次数:
300
为期两年多的辅修学习,伴随着一场意外频发的答辩似乎走到了尽头。回顾一下吧当初选择的时候多少是有点纠结的,要不要选择第二个专业,选择一个什么样的专业。它对将来有没有帮助,有多大帮助?思前想后,累!最终选了英语,最主要的原因就是本能的想,或者没有原因。现在看来,凭借自己的直觉去做选择往往是正确的,对,F...
分类:
其他好文 时间:
2014-05-19 19:44:33
阅读次数:
186
正则表达式两类:Pattern模式类和Matcher匹配类
Pattern主要是用来编译模型和生成匹配器matcher;正则表达式基本方法 //定义一个pattern,该pattern就是个f空两个k的模式Pattern
p=Pattern.compile("f(.+?)(.+?)(.+...
分类:
编程语言 时间:
2014-05-19 18:29:37
阅读次数:
270
近段时间发现自己越来越懒了,老师早就讲过的东西,一直没有总结!百度了一下,给的答案是设计模式总共23种。简单工厂属于其中一种,而单例模式并不是其中一种。今天总结下使用这两种模式写的项目。设计模式:设计模式(Design
pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总...
分类:
其他好文 时间:
2014-05-19 16:30:58
阅读次数:
303
【题目】
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters.
For example, given:
S:...
分类:
其他好文 时间:
2014-05-18 08:31:48
阅读次数:
228
1、
??
ZigZag Conversion
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 for better legibili...
分类:
其他好文 时间:
2014-05-18 07:56:49
阅读次数:
407
题目:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Clarification:
What constitutes a word?
A sequence of non-spa...
分类:
其他好文 时间:
2014-05-18 04:12:07
阅读次数:
198