搜索到与相关的文章
编程技术

centos下zookeeper安装配置

参考文档http://zookeeper.apache.org/doc/r3.4.5/zookeeperStarted.html1、首先下载zookeeper,我下载的地址为http://apache.fayea.com/apache-mirror/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz2、解压缩文件tarxvfzookeeper-3.4.5.tar.gz进入配置文件目录cdconf/下面有个名叫z

系统 2019-08-29 22:31:41 2246

编程技术

对账文件导出

if("datafile".equals(billForm.getAction())){Stringdate=request.getParameter("date");System.out.println("date="+date);if(date==null){}else{Listl=this.getBill2Service().getPayData(date);StringBuffersb=newStringBuffer();for(inti=0;i<

系统 2019-08-29 22:24:28 2246

编程技术

异常的捕获

给出下面的代码:packagescjp;publicclassDemo248{publicstaticvoidmain(String[]args){try{thrownewExceptionInInitializerError();}catch(NullPointerExceptione){System.out.println("thrown1");}finally{System.out.println("thrown2");}System.out.pri

系统 2019-08-12 09:30:39 2246

编程技术

初探SchemaExport工具使用

使用SchemaExport自动建表之前都是用最蠢的方法:SQL建立数据库相关的表,然后再Java写映射写配置文件.....实际上使用Hibernate自带的工具hbm2ddl,建立根据你的对象建立数据库是很惬意的一件事;)首先当然要建好POJOobject,XMLMappingFile(也可以使用工具根据POJOclass建立),配置文件(hibernate.cfg.xml)然后运行下面的Java代码importorg.hibernate.cfg.Con

系统 2019-08-12 09:29:56 2246

数据库相关

Bson

http://en.wikipedia.org/wiki/BSONFromWikipedia,thefreeencyclopediaBSONFilenameextension.bsonInternetmediatypenone[1]TypeofformatDatainterchangeExtendedfromJSONStandard(s)noRFCyetWebsitebsonspec.orgBSON(/ˈbiːsɒn/)isacomputerdataint

系统 2019-08-12 01:55:37 2246

数据库相关

FTP经典常用命令

FTP命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操作系统下使用FTP,都会遇到大量的FTP内部命令。熟悉并灵活应用FTP的内部命令,可以大大方便使用者,并收到事半功倍之效。FTP的命令行格式为:ftp-v-d-i-n-g[主机名],其中:-v显示远程服务器的所有响应信息;-n限制ftp的自动登录,即不使用;.netrc文件;-d使用调试方式;-g取消全局文件名。FTP使用的内部命令如下(中括号表示可选项):1.![cmd[a

系统 2019-08-12 01:54:14 2246

数据库相关

Don’t Delete – Just Don’t

Don’tDelete–JustDon’tTuesday,September1st,2009.AfterreadingAyende’spostadvocatingagainst“softdeletes”IfeltthatIshouldaddabitmoretothetopicasthereweresomeimportantbusinesssemanticsmissing.AsdevelopersdiscussthepertinenceofusinganIs

系统 2019-08-12 01:54:13 2246

数据库相关

AD用户操作

本人在网上公开的源代码上加上了,搜索,修改,删除。usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.DirectoryServices;usingSystem.Data;namespaceCommon{publicclassADHelper{privatestaticstringDomainName="VMEX";privatestaticstringLDAPD

系统 2019-08-12 01:33:48 2246

数据库相关

MongoDB学习笔记(5)--数据导入导出mongoexport

假设库里有一张user表,里面有2条记录,我们要将它导出常用导出方法[root@localhostbin]#./mongoexport-dmy_mongodb-cuser-ouser.datconnectedto:127.0.0.1exported2records[root@localhostbin]#catuser.dat{"_id":{"$oid":"4f81a4a1779282ca68fd8a5a"},"uid":2,"username":"Jerr

系统 2019-08-12 01:33:41 2246

数据库相关

sql查询重复记录

1.--查某一列(或多列)的重复值(只能查出重复记录的值,不能整个记录的信息)--如:查找stuid,stuname重复的记录selectstuid,stunamefromstuinfogroupbystuid,stunamehaving(count(*))>12.--查某一列有重复值的记录(这种方法查出的是所有重复的记录,也就是说如果有两条记录重复的,就查出两条)--如:查找stuid重复的记录select*fromstuinfowherestuidin

系统 2019-08-12 01:32:52 2246