@Providerpublic class FormDataFilter implements ContainerRequestFilter{ @Override public void filter(ContainerRequestContext requestContext) thr...
分类:
其他好文 时间:
2015-11-08 14:50:20
阅读次数:
769
首先在 UITableViewCell.h 中声明一个代理@protocol UITableViewCellSlideDelegate @optional- (void)tableView:(UITableView *)tableView slideToRightWithIndexPath:(NSI...
分类:
移动开发 时间:
2015-11-08 14:34:14
阅读次数:
196
先看看下面的代码会输出什么: public static void main(String[] args) { Integer i = 127; Integer j = 128; Integer ii = 127; Integer jj = 128; System.out.println( i==i...
分类:
其他好文 时间:
2015-11-08 14:26:45
阅读次数:
194
class:SysSetupFormRunpublic void run(){ super(); this.design().colorScheme(FormColorScheme::RGB); this.design().backgroundColor(WinAPI::RGB2int( 204,2...
分类:
其他好文 时间:
2015-11-08 14:26:37
阅读次数:
172
先看看下面的代码能不能编译通过: public static void main(String[] args) { List l1 = new ArrayList(); List l2 = new ArrayList(){}; List l3 = new ArrayList(){{}}; Syste...
分类:
其他好文 时间:
2015-11-08 14:24:10
阅读次数:
158
1.拦截器(interceptor):拦截器是Struts2的核心,Struts2的众多功能都是通过拦截器来实现的。与filter工作流程相似,只拦截action。2.Interceptor接口(继承)void destory(); 很少使用void init(); 很少使用String inter...
分类:
其他好文 时间:
2015-11-08 14:23:43
阅读次数:
235
Java创建线程有两种方法,一种是继承Thread,另一种实现Runnable或Callable接口。一,继承Threadpublic class APP { public static void main(String[] args) { Thread thread = new...
分类:
编程语言 时间:
2015-11-08 14:17:28
阅读次数:
257
#import "objc/runtime.h"void Swizzle(Class c, SEL orig, SEL new) { Method origMethod = class_getInstanceMethod(c, orig); Method newMethod = clas...
分类:
其他好文 时间:
2015-11-08 14:06:44
阅读次数:
261
4.4 不可能向 5.0 一行代码搞定。默认是黑色。字节码,反射。通过反射得到状态栏的高度。黑色 变成 透明, 然后拉伸状态栏。Android 获取屏幕高度、标题高度、状态栏高度详解android KITKAT 状态栏颜色protected void initSystemBar() { ...
分类:
移动开发 时间:
2015-11-08 14:03:28
阅读次数:
336
服务端: 监听端口(5051),接收数据import java.io.*;import java.net.*;import java.util.Scanner;class UdpServer{ public static void main(String[] args)throws IOExcep....
分类:
编程语言 时间:
2015-11-08 13:59:08
阅读次数:
326