类使用的7个阶段 类从被加载到虚拟机内存中开始,到卸载出内存,它的整个生命周期包括:加载(Loading)、验证(Verification)、准备(Preparation)、解析(Resolution)、初始化(Initiallization)、使用(Using)和卸载(Unloading)这7个阶 ...
分类:
其他好文 时间:
2017-02-14 17:45:40
阅读次数:
311
1、操作浏览器窗口 2、获取页面源码资源 3、页面刷新、模拟单击浏览器的前进、后退功能 4、针对输入框的部分操作 5、模拟键盘、鼠标操作page ...
分类:
编程语言 时间:
2017-02-14 13:19:11
阅读次数:
263
keepalive的配置文件 使用的脚本:/root/check_code.py (该脚本检查http的状态吗,如果不是200,则关闭keepalive服务,使VIP漂移到备份机上) #!/usr/bin/env python import urllib2 import os url = 'http ...
分类:
其他好文 时间:
2017-02-14 12:01:55
阅读次数:
236
第一步,做一个类,派生自SimpleTagSupport,“alt+/”选重写doTag()方法。 第二步,配置 在WEB-INF文件夹中新建一个XML.File文件,扩展名更改为tld,选择XML template,完成创建。 taglib为根元素 根元素下面写对整个文件的描述 <descript ...
分类:
Web程序 时间:
2017-02-14 00:57:05
阅读次数:
288
这里并未涉及到JSR181Annotations的相关应用,具体的三种方式如下 ①通过WSDL地址来创建动态客户端②通过服务端提供的接口来创建客户端③使用Ant通过WSDL文件来生成客户端 第一种方式:通过WSDL地址来创建动态客户端 view plainprint? ...
分类:
Web程序 时间:
2017-02-13 23:56:26
阅读次数:
476
Installation Via NPM: Basic Usage Swig has multiple ways to compile and render templates. Check the API documentation for more detailed information an ...
分类:
其他好文 时间:
2017-02-13 23:46:41
阅读次数:
283
今天新来的小伙子让我帮忙看一个bug,在for遍历List时提示ClassCastException。 伪代码 for(Order order : model.getOrderList)... debug之后发现OrderList里放的是Object[]数组,于是追到了注入的位置 orderList ...
分类:
编程语言 时间:
2017-02-13 18:37:38
阅读次数:
211
chsakell分享了一个前端使用AngularJS,后端使用ASP.NET Web API的项目。 源码: https://github.com/chsakell/spa-webapi-angularjs文章:http://chsakell.com/2015/08/23/building-sing ...
什么是Exceptions 首先我们要知道什么是Exceptions, 定义如下 Exceptions: An exception is an event that occurs during the execution of a program that disrupts the normal f ...
分类:
编程语言 时间:
2017-02-12 18:55:47
阅读次数:
202
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); long expectedSum = 0; boolean g... ...
分类:
其他好文 时间:
2017-02-11 21:44:59
阅读次数:
241