流式布局FlowLayout 边界布局BorderLayout 表格布局GridLayout 综合布局 绘图Graphics 动作事件监听java.awt.event.ActionListener Button TextField Window事件监听WindowListener 鼠标事件监听器Mo ...
分类:
编程语言 时间:
2017-01-06 11:11:30
阅读次数:
270
本书架主要针对Java后端开发与架构。 更新记录:4.0版把第五部份-具体技术的书整块拿掉了。《TCP/IP详解 卷1:协议》出到了第二版,增加《SRE:Google运维解密》,《Java8 实战》。 更偏爱那些能用简短流畅的话,把少壮不努力的程序员所需的基础补回来的薄书,而有些教课书可能很著名,但 ...
分类:
编程语言 时间:
2017-01-06 11:07:16
阅读次数:
333
作为一名程序员,你几乎每天都会使用到GitHub上的那些著名Java第三方库,比如Apache Commons,Spring,Hibernate等等。除了这些,你可能还会fork或Star一些其他的开源库,但GitHub上的库实在太多了,以至于对于个人来说,你很难有时间去发现并了解那些不断加入的新库 ...
分类:
编程语言 时间:
2017-01-06 10:32:11
阅读次数:
292
百度目前提供自动提交链接和手动提交链接两种方式,其中自动提交又分为主动推送、自动推送和sitemap三种形式,按百度的说法,主动推送的效果最好,百度站长平台后台也提供了curl、php、ruby的推送示例代码但没有提供python代码,网上很少有现成的python版本主动推送代码(仅有的也有点小问题 ...
分类:
编程语言 时间:
2017-01-06 10:23:45
阅读次数:
473
25、java中观察者模式Observable和Observer 如果想要实现观察者模式,则必须依靠java.util包中提供的Observable类和Observer接口 观察者设计模式 现在很多的购房者都在关注着房子的价格变化,每当房子价格变化的时候,所有的购房者都可以观察得到。 实际上以上的购 ...
分类:
编程语言 时间:
2017-01-06 09:31:43
阅读次数:
222
spring-servlet.xml配置<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://w..
分类:
编程语言 时间:
2017-01-06 08:31:28
阅读次数:
179
spring-servlet.xml配置<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://w..
分类:
编程语言 时间:
2017-01-06 08:26:30
阅读次数:
226
spring-servlet.xml配置<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://w..
分类:
编程语言 时间:
2017-01-06 08:25:49
阅读次数:
193
springpom.xml设置<?xmlversion="1.0"encoding="UTF-8"?>
<projectxmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0..
分类:
编程语言 时间:
2017-01-06 08:27:40
阅读次数:
187
springpom.xml设置<?xmlversion="1.0"encoding="UTF-8"?>
<projectxmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0..
分类:
编程语言 时间:
2017-01-06 08:24:41
阅读次数:
161
goto语句标号;实现无条件跳转限制:goto和语句标号必须在同一个函数中,可以不在同一个循环层中.#include<stdio.h>
intmain(void){
inti,sum=0;
i=1;
loop:if(i<=100){
sum+=i;
i++;
gotoloop;
}
printf("sum=%d\n",sum);
return0;
}
结果为5050
分类:
编程语言 时间:
2017-01-06 08:22:43
阅读次数:
172
JSONObject的相关处理//-------------遍历json串的key-----------
JSONObjectdata=JSONObject.fromObject("{\"cill\":\"2\",\"age\":\"黄磊\"}");
Iteratorkeys=data.keys();
ArrayList<String>listKey=newArrayList<String>();
while(keys.hasNext()){
Stringkey..
分类:
编程语言 时间:
2017-01-06 08:20:03
阅读次数:
193
任务管理:说明:如上为运行任务后的标准输出,transport为消息代理,concurrency为默认进程池进程数,当所有子进程处于忙碌状态时必须等待空闲子进程处理,如果是IO密集型可尝试使用Eventlet/Gevent协程,具体可参考http://docs.jinkan.org/docs/celery/userguide/concurrency/index...
分类:
编程语言 时间:
2017-01-06 08:19:20
阅读次数:
245
闲着没事爬个糗事百科的笑话看看python3中用urllib.request.urlopen()打开糗事百科链接会提示以下错误http.client.RemoteDisconnected:Remoteendclosedconnectionwithoutresponse但是打开别的链接就正常,很奇怪不知道为什么,没办法改用第三方模块requests,也可以用urllib3模..
分类:
编程语言 时间:
2017-01-06 08:09:11
阅读次数:
666
. 包含头文件: 2. 构造函数: 3. 添加元素: 4. 查找元素: 5. 删除元素: 6. member functions: map::at map::begin map::cbegin map::cend map::clear map::count map::crbegin map::cre ...
分类:
编程语言 时间:
2017-01-06 08:01:40
阅读次数:
318
1. 包含头文件: 2. pair 的操作: 3. 4. ...
分类:
编程语言 时间:
2017-01-06 07:50:20
阅读次数:
169
集成Spring 加入Spring 和Shiro的jar 包 配置Spring 及SpringMVC 参照:1.3.2\shiro-root-1.3.2-source-release\shiro-root-1.3.2\samples\spring 配置web.xml 文件和Spring 的配置文件 ...
分类:
编程语言 时间:
2017-01-06 07:50:24
阅读次数:
401