摘要: 简单步骤:CloseableHttpClient->HttpGet->CloseableHttpResponse->HttpEntityExample:CloseableHttpClient httpclient = HttpClients.createDefault();HttpGet httpget = new HttpGet("http://localhost/");CloseableHttpResponse response = ttpclient.execute(httpget);try { System.out.println(response 阅读全文
posted @ 2013-12-02 14:36 伟我独high 阅读(719) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---1.开服务cmd进入mongod bin目录 mongod.exe bdpath默认c:\data\db 如更改mongod.exe --dbpath="e:\data\db"2.开客户端cmd 进入mongod bin目录mongodb.集合.操作eg:db.person.insert({"name":"tom","age":25})3.操作3.1 增删改find/findOne({条件}) 一定要有{}①: >, >=, <, <=, !=, =,"$g 阅读全文
posted @ 2013-12-02 14:35 伟我独high 阅读(274) 评论(0) 推荐(0) 编辑