- python接口自动化测试 - mock模块基本使用介绍
程序员笑笑
软件测试python服务器apache功能测试软件测试自动化测试程序人生
mock作用解决依赖问题,达到解耦作用当我们测试某个目标接口(模块)时,该接口依赖其他接口,当被依赖的接口未开发完成时,可以用mock模拟被依赖接口,完成目标接口的测试模拟复杂业务的接口当我们测试某个目标接口(模块),该接口依赖一个非常复杂的接口时,可以用mock来模拟这个复杂的业务接口;也解决接口依赖一样的原理单元测试如果某个接口(模块)未开发完成时,又需要编写测试用例,则可以通过mock模拟该
- python 接口自动化数据结构(如列表、字典、元组)
测试界晓晓
软件测试python自动化数据结构软件测试自动化测试功能测试程序人生
在Python接口自动化测试中,数据结构扮演着至关重要的角色,用于组织和处理测试数据、请求参数和响应结果。列表(List)列表是Python中的一种可变序列数据类型,它允许存储一系列有序的、可重复的元素,这些元素可以是任何数据类型,包括字符串、数字、布尔值甚至是其他的列表或字典等复杂类型。users_list=['user1','user2','user3']request_urls=['http
- python接口自动化(三)--如何设计接口测试用例(详解)
咖啡加剁椒.
软件测试自动化测试用例运维自动化测试软件测试功能测试程序人生
在开始接口测试之前,我们来想一下,如何进行接口测试的准备工作。或者说,接口测试的流程是什么?有些人就很好奇,接口测试要流程干嘛?不就是拿着接口文档直接利用接口测试工具测试嘛。其实,如果只是三五个接口,你可以这么做一个临时的接口测试。但是,如果是上百个接口,或者,你们公司的这个项目,第一次做接口测试,那么,我们还是很有必要严格遵守接口测试的流程。接口测试的流程接口测试也是属于功能测试,所以跟我们以往
- 【python接口自动化】- DDT数据驱动测试
程 序员二黑
python自动化压力测试单元测试软件测试自动化测试
交流讨论:欢迎加入我们一起学习!资源分享:耗时200+小时精选的「软件测试」资料包教程推荐:火遍全网的《软件测试》教程欢迎点赞收藏⭐留言如有错误敬请指正!简单介绍DDT(DateDriverTest),所谓数据驱动测试,简单来说就是由数据的改变从而驱动自动化测试的执行,最终引起测试结果的改变。通过使用数据驱动测试的方法,可以在需要验证多组数据测试场景中,使用外部数据源实现对输入输出与期望值的参数化
- 【python接口自动化】- 使用json及jsonpath转换和提取数据
程 序员二黑
python自动化压力测试软件测试自动化测试
交流讨论:欢迎加入我们一起学习!资源分享:耗时200+小时精选的「软件测试」资料包教程推荐:火遍全网的《软件测试》教程欢迎点赞收藏⭐留言如有错误敬请指正!前言JSON(JavaScriptObjectNotation)是一种轻量级的数据交换格式。它可以让人们很容易的进行阅读和编写,同时也方便了机器进行解析和生成,适用于进行数据交互的场景,比如网站前台与后台之间的数据交互。简单说就是javascri
- python接口自动化测试框架介绍
阿里大叔说测试
python开发语言
之前在项目中搞了一套jmeter+jenkins+git+ant接口自动化测试框架,在项目中运行了大半年了,效果还不错,最近搞了一套requests+unittest+ddt+pymysql+BeautifulReport的接口自动化测试框架,测试用例在yaml文件中,支持数据驱动、连数据库查询。目前框架还不是特别完善,需要在后续的使用中一步步优化,目前尚未使用jenkins做集成,后续结合jen
- python接口自动化测试--基于加密接口的测试用例设计
奶茶半分甜
python接口自动化python自动化开发语言
环境准备在进行实战之前,需要先准备一个对响应加密的接口。对它发起一个get请求后,得到一个加密过后的响应信息。先准备一个JSON格式demo:{"topics":{"orange":"movie","shool":"testing-studio","president":"seveniruby"}}使用base64对其做加密,得到一个加密后的文件demo64.txtbase64demo.json>
- pythonpost四种方式_python接口自动化(十)--post请求四种传送正文方式(详解)...
weixin_39723010
pythonpost四种方式
简介post请求我在python接口自动化(八)--发送post请求的接口(详解)已经讲过一部分了,主要是发送一些较长的数据,还有就是数据比较安全等。我们要知道post请求四种传送正文方式首先需要先了解一下常见的四种编码方式:HTTP协议规定POST提交的数据必须放在消息主体(entity-body)中,但协议并没有规定数据必须使用什么编码方式。浏览器行为:Form表单提交1、form表单常用属性
- python接口学习资料汇总--post请求四种传送正文方式(详解)
百零旺合
接口request
python3+requests:post请求四种传送正文方式(详解)python接口自动化2-发送post请求详解(二)注:转自–疯了的小蜗python3+requests:post请求四种传送正文方式(详解)前言:post请求我在python接口自动化2-发送post请求详解(二)已经讲过一部分了,主要是发送一些较长的数据,还有就是数据比较安全等,可以参考Get,Post请求方式经典详解进行学
- python接口自动化(十)--post请求四种传送正文方式(详解)
测试小鬼
自动化经验分享测试用例python软件测试
简介post请求我在之前的文章已经讲过一部分了,主要是发送一些较长的数据,还有就是数据比较安全等。我们要知道post请求四种传送正文方式首先需要先了解一下常见的四种编码方式:HTTP协议规定POST提交的数据必须放在消息主体(entity-body)中,但协议并没有规定数据必须使用什么编码方式。浏览器行为:Form表单提交1、form表单常用属性1action:url地址,服务器接收表单数据的地址
- 接口自动化--post请求四种传送正文方式(详解)
XTY00
接口测试
简介post请求我在python接口自动化(八)--发送post请求的接口(详解)已经讲过一部分了,主要是发送一些较长的数据,还有就是数据比较安全等。我们要知道post请求四种传送正文方式首先需要先了解一下常见的四种编码方式:HTTP协议规定POST提交的数据必须放在消息主体(entity-body)中,但协议并没有规定数据必须使用什么编码方式。浏览器行为:Form表单提交1、form表单常用属性
- python接口自动化(十)--post请求四种传送正文方式(详解)
北京-宏哥
python接口自动化python自动化开发语言测试工具
1.简介post请求我在python接口自动化(八)--发送post请求的接口(详解)已经讲过一部分了,主要是发送一些较长的数据,还有就是数据比较安全等。我们要知道post请求四种传送正文方式首先需要先了解一下常见的四种编码方式:HTTP协议规定POST提交的数据必须放在消息主体(entity-body)中,但协议并没有规定数据必须使用什么编码方式。2.浏览器行为:Form表单提交2.1form表
- python接口自动化测试 - requests库的post请求进行文件上传
wanan安
python单元测试功能测试集成测试测试工具压力测试
前言如果需要发送文件到服务器,比如上传图片、视频等,就需要发送二进制数据。一般上传文件使用的都是Content-Type:multipart/form-data;数据类型,可以发送文件,也可以发送相关的消息体数据。POST一个多部分编码(Multipart-Encoded)的文件使用requests上传文件的基本步骤构造文件数据,通过open函数以二进制方式打开文件构造相关数据发送请求,将文件数据
- 【python接口自动化测试日期参数tips】
EVE จุ๊บ
python开发语言
python接口自动化测试日期参数格式tips日期参数格式生成日期格式的代码日期参数格式我们在做Python接口自动化测试过程时,有的时候会遇到传参为日期格式的数据,日期格式多种多样,我们要确保符合要求的日期格式才能跑通接口。如果日期格式错误比如将“2024-02-06”写成“2024-2-6”那样就会报错生成日期格式的代码defgeneration_time():current_time=dat
- python接口自动化之接口测试用例(详解)
.咖啡加剁椒.
软件测试python自动化测试用例软件测试自动化测试功能测试程序人生
简介接口测试是软件测试中非常重要的一种测试类型,它主要针对系统的接口进行测试,检查接口之间的交互是否符合预期。在进行接口测试时需要注意以下几个方面:接口测试用例设计接口测试用例设计需要考虑到接口的输入、输出、边界条件、异常情况等因素,确保对接口的功能和性能进行全面的覆盖。同时还需要根据系统的实际情况定制不同的测试用例,例如对于高并发系统需要增加并发测试用例。接口测试环境搭建在进行接口测试前,需要先
- (非常全面的干货)Python接口自动化测试框架实战开发
美团程序员
软件测试自动化测试技术分享python开发语言
一丶叙述1.项目介绍整个项目分为四个部分:接口基础丶接口开发丶Unittest与接口测试结合以及接口自动化框架从设计到开发接口基础包括:HTTP接口/常见接口/接口工具/接口基础知识接口开发:通过Django来开发get/post接口Unittest与接口测试结合:unittest应用/断言/requests引入/HTMLTestRunner/case的管理接口自动化框架从设计到开发:如何设计框架
- 如何才能让用例自动运行完之后,生成一张直观可看易懂的测试报告呢?
软件测试果冻
python开发语言
【B站最通俗易懂】Python接口自动化测试从入门到精通,超详细的进阶教程,看完这套视频就够了小编使用的是unittest的一个扩展HTMLTestRunner环境准备使用之前,我们需要下载HTMLTestRunner.py文件点击HTMLTestRunner后进入的是一个写满代码的网页,小编推荐操作:右键-->另存为,文件名称千万不要改python3使用上述HTMLTestRunner可能会报错
- python接口自动化代码运行遇到Hint: make sure your test modules/packages have valid Python names报错
FightingHg
问题记录python学习Python接口自动化
公司使用python,通过pytest运行接口自动化代码,本来一直运行的好好的没啥问题,中间请假20天,回来拉取代码后发现运行报错:Hint:makesureyourtestmodules/packageshavevalidPythonnames.网上找的方法都是说pytest使用的环境与python运行的环境不一致,实在没搞懂为啥,我自己理解就是pytest和python版本不一致,然后在pyc
- Python接口自动化框架设计到开发
菜鸟学识
python编程python自动化开发语言
1.如何设计一个接口自动化测试框架根据接口地址、接口类型、请求数据、预期结果来进行设计,对于需要登录后才能进行操作的接口那么则需要进行headercookie等数据的传递,自动化测试的难点就是数据依赖。2.python操作excel获得内容首先python操作excel,需要安装两个包,分别是xlrd和xlwt这两个库,xlrd这个库是负责读取excel数据的,而xlwt库是负责向excel写入数
- Pyton接口自动化相关【易报错问题及解决方法】
测试大大怪
单元测试功能测试测试工具压力测试测试用例seleniumpostman
相信有很多学习python接口自动化测试的朋友大致都会遇到以下类似的一些问题,毕竟是初学者,几乎每时每刻都在踩坑;所以今天我分享这个把大多数人坑过的问题集中起来了,望大家汇总并时常查看,免得再次踩到,那就尴尬了。Python怎么链接数据库python操作数据库需要使用pymysql这个模块代码:importpymsql#第一步:链接到mysql数据库con=pymsql.connect(host=
- 10分钟搞懂,Python接口自动化测试-接口依赖-实战教程
程序员雷子
jmeter单元测试自动化selenium测试工具功能测试测试用例
一、场景说明在面试接口自动化时,经常会问,其他接口调用的前提条件是当前用户必须是登录状态,如何处理接口依赖?在此之前我们介绍过session管理器保存会话状态。如果接口请求需要携带token,那么又如果处理呢?以下详细介绍。未登录状态下,直接请求充值接口的异常场景:importunittestimportrequestsclassTestRecharge(unittest.TestCase):de
- Python接口自动化框架设计到开发,赶紧用起来!
MJH827
自动化测试pythonjmeterpytest压力测试单元测试自动化测试测试框架
1.如何设计一个接口自动化测试框架根据接口地址、接口类型、请求数据、预期结果来进行设计,对于需要登录后才能进行操作的接口那么则需要进行headercookie等数据的传递,自动化测试的难点就是数据依赖。2.python操作excel获得内容首先python操作excel,需要安装两个包,分别是xlrd和xlwt这两个库,xlrd这个库是负责读取excel数据的,而xlwt库是负责向excel写入数
- Python接口自动化测试之UnitTest详解
咖啡加剁椒
软件测试python服务器开发语言软件测试自动化测试功能测试程序人生
基本概念UnitTest单元测试框架是受到JUnit的启发,与其他语言中的主流单元测试框架有着相似的风格。其支持测试自动化,配置共享和关机代码测试。支持将测试样例聚合到测试集中,并将测试与报告框架独立。它分为四个部分testfixture、TestCase、testsuite、testrunner,分别是:测试脚手架:为了开展项测试所需要进行的准备工作,以及所有相关的清理操作;测试用例:一个测试用
- HttpRunner(2):模拟发送GET请求&自动生成测试报告
测试店小二
dubboselenium计算机外设pytestpythonhttprunner
httprunner项目下yaml文件的格式1、首先在python项目下新建一个testcases文件夹,然后再新建一个以.yml的文件后缀名,如demo01.yml如果你想学习自动化测试,我这边给你推荐一套视频,这个视频可以说是B站播放全网第一的自动化测试教程,同时在线人数到达1000人,并且还有笔记可以领取及各路大神技术交流:798478386【已更新】B站讲的最详细的Python接口自动化测
- 【Python接口自动化】调用企业微信机器人
寒山独见君~
【Python接口自动化】python企业微信机器人
在企业微信群中添加机器人,得到webhook链接官方配置文档:链接defqiye():url="webhook链接"headers={'Content-Type':'application/json;charset=utf-8'}data_text={"msgtype":"text","text":{"content":"广州今日天气:29度,大部分多云,降雨概率:60%",#文本内容,最长不超过
- Python接口自动化测试项目实战
测试界清流
软件测试javamysql开发语言
1.1接口测试项目搭建1.1.1教育局招生管理系统部署教育局招生管理系统是基于java+mysql,下面介绍它的部署过程。1.从我的网盘下载部署文件。2.安装jdk以及配置环境变量。点击文件进行安装。下一步下一步直接安装。本人的安装路径是C:\ProgramFiles\Java\jdk1.7.0_17。安装完成后需要设置环境变量从而使编译器正常使用。右击“计算机”选择“属性”选择左边“高级系统设置
- python接口自动化测试 - mock模块基本使用介绍
测试界清流
接口测试自动化测试运维
mock作用解决依赖问题,达到解耦作用当我们测试某个目标接口(模块)时,该接口依赖其他接口,当被依赖的接口未开发完成时,可以用mock模拟被依赖接口,完成目标接口的测试模拟复杂业务的接口当我们测试某个目标接口(模块),该接口依赖一个非常复杂的接口时,可以用mock来模拟这个复杂的业务接口;也解决接口依赖一样的原理单元测试如果某个接口(模块)未开发完成时,又需要编写测试用例,则可以通过mock模拟该
- python接口自动化(八)--发送post请求的接口(详解)
北京-宏哥
python自动化开发语言
1.简介上篇介绍完发送get请求的接口,大家必然联想到发送post请求的接口也不会太难,被聪明的你又猜到了。答案是对的,虽然发送post请求的参考例子很简单,但是实际遇到的情况却是很复杂的,因为所有系统或者软件、网站都是从登录开始的,进入这扇门才可以发现里边的奥秘,所以首先介绍的第一个post请求肯定是登录了,但登录是最难处理的。如果把登录问题这只拦路虎解决了,那么后面问题都迎刃而解。2.help
- Python接口自动化测试的局限性,该如何破局?
划水不带桨
python开发语言集成测试
Python接口自动化测试在软件质量保证方面具有显著的优势,如提高测试效率、减少人工错误、支持持续集成和回归测试等。然而,它也存在一些局限性,主要包括以下几点:1.**初始投入成本高**:-编写自动化测试脚本需要时间和技术知识,包括对Python语言的掌握以及接口测试框架(如unittest、pytest或requests等)的使用。-需要设计和实现用于验证接口响应的有效性校验逻辑,这可能涉及复杂
- 【大咖分享】python接口自动化测试框架环境使用
白码会说
软件测试python软件测试
Timewilltell.正题本文总结分享介绍接口测试框架开发,环境使用python3+selenium3+unittest+ddt+requests测试框架及ddt数据驱动,采用Excel管理测试用例等集成测试数据功能,以及使用HTMLTestRunner来生成测试报告,目前有开源的poman、Jmeter等接口测试工具,为什么还要开发接口测试框架呢?因接口测试工具也有存在几点不足。测试数据不可
- 怎么样才能成为专业的程序员?
cocos2d-x小菜
编程PHP
如何要想成为一名专业的程序员?仅仅会写代码是不够的。从团队合作去解决问题到版本控制,你还得具备其他关键技能的工具包。当我们询问相关的专业开发人员,那些必备的关键技能都是什么的时候,下面是我们了解到的情况。
关于如何学习代码,各种声音很多,然后很多人就被误导为成为专业开发人员懂得一门编程语言就够了?!呵呵,就像其他工作一样,光会一个技能那是远远不够的。如果你想要成为
- java web开发 高并发处理
BreakingBad
javaWeb并发开发处理高
java处理高并发高负载类网站中数据库的设计方法(java教程,java处理大量数据,java高负载数据) 一:高并发高负载类网站关注点之数据库 没错,首先是数据库,这是大多数应用所面临的首个SPOF。尤其是Web2.0的应用,数据库的响应是首先要解决的。 一般来说MySQL是最常用的,可能最初是一个mysql主机,当数据增加到100万以上,那么,MySQL的效能急剧下降。常用的优化措施是M-S(
- mysql批量更新
ekian
mysql
mysql更新优化:
一版的更新的话都是采用update set的方式,但是如果需要批量更新的话,只能for循环的执行更新。或者采用executeBatch的方式,执行更新。无论哪种方式,性能都不见得多好。
三千多条的更新,需要3分多钟。
查询了批量更新的优化,有说replace into的方式,即:
replace into tableName(id,status) values
- 微软BI(3)
18289753290
微软BI SSIS
1)
Q:该列违反了完整性约束错误;已获得 OLE DB 记录。源:“Microsoft SQL Server Native Client 11.0” Hresult: 0x80004005 说明:“不能将值 NULL 插入列 'FZCHID',表 'JRB_EnterpriseCredit.dbo.QYFZCH';列不允许有 Null 值。INSERT 失败。”。
A:一般这类问题的存在是
- Java中的List
g21121
java
List是一个有序的 collection(也称为序列)。此接口的用户可以对列表中每个元素的插入位置进行精确地控制。用户可以根据元素的整数索引(在列表中的位置)访问元素,并搜索列表中的元素。
与 set 不同,列表通常允许重复
- 读书笔记
永夜-极光
读书笔记
1. K是一家加工厂,需要采购原材料,有A,B,C,D 4家供应商,其中A给出的价格最低,性价比最高,那么假如你是这家企业的采购经理,你会如何决策?
传统决策: A:100%订单 B,C,D:0%
&nbs
- centos 安装 Codeblocks
随便小屋
codeblocks
1.安装gcc,需要c和c++两部分,默认安装下,CentOS不安装编译器的,在终端输入以下命令即可yum install gccyum install gcc-c++
2.安装gtk2-devel,因为默认已经安装了正式产品需要的支持库,但是没有安装开发所需要的文档.yum install gtk2*
3. 安装wxGTK
yum search w
- 23种设计模式的形象比喻
aijuans
设计模式
1、ABSTRACT FACTORY—追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个鸡翅”就行了。麦当劳和肯德基就是生产鸡翅的Factory 工厂模式:客户类和工厂类分开。消费者任何时候需要某种产品,只需向工厂请求即可。消费者无须修改就可以接纳新产品。缺点是当产品修改时,工厂类也要做相应的修改。如:
- 开发管理 CheckLists
aoyouzi
开发管理 CheckLists
开发管理 CheckLists(23) -使项目组度过完整的生命周期
开发管理 CheckLists(22) -组织项目资源
开发管理 CheckLists(21) -控制项目的范围开发管理 CheckLists(20) -项目利益相关者责任开发管理 CheckLists(19) -选择合适的团队成员开发管理 CheckLists(18) -敏捷开发 Scrum Master 工作开发管理 C
- js实现切换
百合不是茶
JavaScript栏目切换
js主要功能之一就是实现页面的特效,窗体的切换可以减少页面的大小,被门户网站大量应用思路:
1,先将要显示的设置为display:bisible 否则设为none
2,设置栏目的id ,js获取栏目的id,如果id为Null就设置为显示
3,判断js获取的id名字;再设置是否显示
代码实现:
html代码:
<di
- 周鸿祎在360新员工入职培训上的讲话
bijian1013
感悟项目管理人生职场
这篇文章也是最近偶尔看到的,考虑到原博客发布者可能将其删除等原因,也更方便个人查找,特将原文拷贝再发布的。“学东西是为自己的,不要整天以混的姿态来跟公司博弈,就算是混,我觉得你要是能在混的时间里,收获一些别的有利于人生发展的东西,也是不错的,看你怎么把握了”,看了之后,对这句话记忆犹新。 &
- 前端Web开发的页面效果
Bill_chen
htmlWebMicrosoft
1.IE6下png图片的透明显示:
<img src="图片地址" border="0" style="Filter.Alpha(Opacity)=数值(100),style=数值(3)"/>
或在<head></head>间加一段JS代码让透明png图片正常显示。
2.<li>标
- 【JVM五】老年代垃圾回收:并发标记清理GC(CMS GC)
bit1129
垃圾回收
CMS概述
并发标记清理垃圾回收(Concurrent Mark and Sweep GC)算法的主要目标是在GC过程中,减少暂停用户线程的次数以及在不得不暂停用户线程的请夸功能,尽可能短的暂停用户线程的时间。这对于交互式应用,比如web应用来说,是非常重要的。
CMS垃圾回收针对新生代和老年代采用不同的策略。相比同吞吐量垃圾回收,它要复杂的多。吞吐量垃圾回收在执
- Struts2技术总结
白糖_
struts2
必备jar文件
早在struts2.0.*的时候,struts2的必备jar包需要如下几个:
commons-logging-*.jar Apache旗下commons项目的log日志包
freemarker-*.jar  
- Jquery easyui layout应用注意事项
bozch
jquery浏览器easyuilayout
在jquery easyui中提供了easyui-layout布局,他的布局比较局限,类似java中GUI的border布局。下面对其使用注意事项作简要介绍:
如果在现有的工程中前台界面均应用了jquery easyui,那么在布局的时候最好应用jquery eaysui的layout布局,否则在表单页面(编辑、查看、添加等等)在不同的浏览器会出
- java-拷贝特殊链表:有一个特殊的链表,其中每个节点不但有指向下一个节点的指针pNext,还有一个指向链表中任意节点的指针pRand,如何拷贝这个特殊链表?
bylijinnan
java
public class CopySpecialLinkedList {
/**
* 题目:有一个特殊的链表,其中每个节点不但有指向下一个节点的指针pNext,还有一个指向链表中任意节点的指针pRand,如何拷贝这个特殊链表?
拷贝pNext指针非常容易,所以题目的难点是如何拷贝pRand指针。
假设原来链表为A1 -> A2 ->... -> An,新拷贝
- color
Chen.H
JavaScripthtmlcss
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD>&nbs
- [信息与战争]移动通讯与网络
comsci
网络
两个坚持:手机的电池必须可以取下来
光纤不能够入户,只能够到楼宇
建议大家找这本书看看:<&
- oracle flashback query(闪回查询)
daizj
oracleflashback queryflashback table
在Oracle 10g中,Flash back家族分为以下成员:
Flashback Database
Flashback Drop
Flashback Table
Flashback Query(分Flashback Query,Flashback Version Query,Flashback Transaction Query)
下面介绍一下Flashback Drop 和Flas
- zeus持久层DAO单元测试
deng520159
单元测试
zeus代码测试正紧张进行中,但由于工作比较忙,但速度比较慢.现在已经完成读写分离单元测试了,现在把几种情况单元测试的例子发出来,希望有人能进出意见,让它走下去.
本文是zeus的dao单元测试:
1.单元测试直接上代码
package com.dengliang.zeus.webdemo.test;
import org.junit.Test;
import o
- C语言学习三printf函数和scanf函数学习
dcj3sjt126com
cprintfscanflanguage
printf函数
/*
2013年3月10日20:42:32
地点:北京潘家园
功能:
目的:
测试%x %X %#x %#X的用法
*/
# include <stdio.h>
int main(void)
{
printf("哈哈!\n"); // \n表示换行
int i = 10;
printf
- 那你为什么小时候不好好读书?
dcj3sjt126com
life
dady, 我今天捡到了十块钱, 不过我还给那个人了
good girl! 那个人有没有和你讲thank you啊
没有啦....他拉我的耳朵我才把钱还给他的, 他哪里会和我讲thank you
爸爸, 如果地上有一张5块一张10块你拿哪一张呢....
当然是拿十块的咯...
爸爸你很笨的, 你不会两张都拿
爸爸为什么上个月那个人来跟你讨钱, 你告诉他没
- iptables开放端口
Fanyucai
linuxiptables端口
1,找到配置文件
vi /etc/sysconfig/iptables
2,添加端口开放,增加一行,开放18081端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 18081 -j ACCEPT
3,保存
ESC
:wq!
4,重启服务
service iptables
- Ehcache(05)——缓存的查询
234390216
排序ehcache统计query
缓存的查询
目录
1. 使Cache可查询
1.1 基于Xml配置
1.2 基于代码的配置
2 指定可搜索的属性
2.1 可查询属性类型
2.2 &
- 通过hashset找到数组中重复的元素
jackyrong
hashset
如何在hashset中快速找到重复的元素呢?方法很多,下面是其中一个办法:
int[] array = {1,1,2,3,4,5,6,7,8,8};
Set<Integer> set = new HashSet<Integer>();
for(int i = 0
- 使用ajax和window.history.pushState无刷新改变页面内容和地址栏URL
lanrikey
history
后退时关闭当前页面
<script type="text/javascript">
jQuery(document).ready(function ($) {
if (window.history && window.history.pushState) {
- 应用程序的通信成本
netkiller.github.com
虚拟机应用服务器陈景峰netkillerneo
应用程序的通信成本
什么是通信
一个程序中两个以上功能相互传递信号或数据叫做通信。
什么是成本
这是是指时间成本与空间成本。 时间就是传递数据所花费的时间。空间是指传递过程耗费容量大小。
都有哪些通信方式
全局变量
线程间通信
共享内存
共享文件
管道
Socket
硬件(串口,USB) 等等
全局变量
全局变量是成本最低通信方法,通过设置
- 一维数组与二维数组的声明与定义
恋洁e生
二维数组一维数组定义声明初始化
/** * */ package test20111005; /** * @author FlyingFire * @date:2011-11-18 上午04:33:36 * @author :代码整理 * @introduce :一维数组与二维数组的初始化 *summary: */ public c
- Spring Mybatis独立事务配置
toknowme
mybatis
在项目中有很多地方会使用到独立事务,下面以获取主键为例
(1)修改配置文件spring-mybatis.xml <!-- 开启事务支持 --> <tx:annotation-driven transaction-manager="transactionManager" /> &n
- 更新Anadroid SDK Tooks之后,Eclipse提示No update were found
xp9802
eclipse
使用Android SDK Manager 更新了Anadroid SDK Tooks 之后,
打开eclipse提示 This Android SDK requires Android Developer Toolkit version 23.0.0 or above, 点击Check for Updates
检测一会后提示 No update were found