自定义拦截器1). 具体步骤I. 定义一个拦截器的类 > 可以实现 Interceptor 接口 > 继承 AbstractInterceptor 抽象类II然后在拦截器类的interceptor()方法中定义这个拦截器的功能III. 在 struts.xml 文件配置. 1注册拦截器 2使用...
分类:
其他好文 时间:
2014-09-27 00:47:58
阅读次数:
200
Leetcode 经典题 Best Time to Buy and Sell Stock III...
分类:
其他好文 时间:
2014-09-20 20:40:19
阅读次数:
208
Leading-Edge Java Design Principles from Design Patterns A Conversation with Erich Gamma, Part III by Bill Venners June 6, 2005 Erich Gamma lept onto the software world stage in 1995 as co-author o...
分类:
其他好文 时间:
2014-09-15 18:00:59
阅读次数:
291
I、 hashCode()方法是Object类下面的一个方法,供继承类重写,根据对象内存地址计算哈希值,
String类重写了hashCode方法,并改为根据字符序列来计算哈希值
III、identityHashCode()方法是System类中的静态方法,根据对象内存地址来计算哈希值;
方法示例:
public static void main(String[] args)
...
分类:
其他好文 时间:
2014-09-12 17:18:03
阅读次数:
190
I、 hashCode()方法是Object类下面的一个方法,供继承类重写,根据对象内存地址计算哈希值,
String类重写了hashCode方法,并改为根据字符序列来计算哈希值
III、identityHashCode()方法是System类中的静态方法,根据对象内存地址来计算哈希值;
方法示例:
public static void main(String[] args)
...
分类:
其他好文 时间:
2014-09-12 17:17:53
阅读次数:
254
[leetcode]Best Time to Buy and Sell Stock III...
分类:
其他好文 时间:
2014-09-09 13:31:08
阅读次数:
128
条款5:Know what functions C++ silently writes and calls译:了解C++默默编写并调用哪些函数在C++中,写一个空类,编译器会自动为它声明一个copy构造函数、一个copy assignment操作符和一个析构函数。如果没有声明任何构造函数,编译器也会...
分类:
编程语言 时间:
2014-09-07 22:21:55
阅读次数:
265
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-09-07 14:41:25
阅读次数:
240
I:项目描述:利用Silverlight+WCF技术,模拟资源管理器(如图1)功能,通过地址栏输入本地文件夹路径,然后将解析出来的该目录下所有文件(夹)存储到数据库中,然后再加载到界面上显示出来;
II:涉及技术:Silverlight;WCF;Component One控件(TreeView和FlexGrid)
III:开发环境:Visual Studio2012;SQL Serve...
分类:
Web程序 时间:
2014-09-05 18:18:41
阅读次数:
434
例如: id name value 1 a pp 2 a pp 3 b iii 4 b pp 5 b pp 6 c pp 7 c pp 8 c iii id是主键 要求得到这样的结果 id name value 1 a pp 3 b iii 4 b pp 6 c pp 8 c iii 方法1 del...
分类:
数据库 时间:
2014-09-03 09:30:06
阅读次数:
313