- 博客(14)
- 资源 (6)
- 收藏
- 关注
翻译 Vert.x-Web的讲解和使用(二)
接上章《Vert.x-Web的讲解和使用(一)》错误处理程序你不但可以设置处理程序去处理请求,同样你也可以设置一个错误处理程序在你的Router中。错误处理程序被使用在精确的有精确的匹配规则的普通Router上。例如:你可以提供一个错误处理程序在你认为有可能发生错误的请求路径或者Http方法上。这一点允许你在应用程序的不同部分设置不同的错误处理程序。这里有一个例子:当路
2015-07-24 18:41:28 11211 4
原创 使用Vert.x的核心包创建HTTPS调用。
String userpass = "Basic " + Base64.getEncoder().encodeToString("username:password".getBytes(Charset.forName("utf-8"))); String url = base + url_2; HttpMethod method = HttpMethod.GET; HttpClientOptions httpOptions = new HttpClientOptions(); h
2015-07-24 13:01:18 4523 1
原创 httpcomponents创建HTTPS调用
public static CloseableHttpClient httpClient = null; static{ ConnectionConfig connConfig = ConnectionConfig.custom().setCharset(Charset.forName("utf-8")).build(); KeyStore trustStore = null; SSLContext sslContext = null; try { trustStore = KeyS
2015-07-24 12:47:26 2252
原创 Vert.x-web的讲解和使用(英文原版)
Vert.x-WebVert.x-Web is a set of building blocks for building web applications with Vert.x.Think of it as a Swiss Army Knife for buildingmodern, scalable, web apps.Vert.x core prov
2015-07-16 10:46:36 4136
翻译 Vert.x-Web的讲解和使用(一)
Vert.x-WebVert.x-Web是vert.x的web构建模块。你可以使用它构建现代的可扩展的web应用程序。Vert.x提供了一些相当底层的方式处理HTTP请求,但是对于大多数的应用程序这些也就够用了。Vert.x-Web基于Vert.x-Core为更容易的构建真正的web应用程序提供了丰富的功能。Vert.x-Web的设计灵感来自Node.js和Ruby,并且成
2015-07-14 14:00:39 9235 3
翻译 vert.x event bus
The Event BusThe event bus is the nervous system of Vert.x.There is a single event bus instance for every Vert.x instance and it is obtained using the methodeventBus.The event bus
2015-07-13 15:40:37 1687
翻译 Vert.x中EventBus中的使用
注意:使用的是vert.x3.0 仅支持到java8其中有一些lambda表达式,如不明白请自补java8新特性。The Event Busevent bus 是vert.x的神经系统。每一个vert.x的实例都有一个单一的event bus 实例。它是使用vertx.eventBus()方法获得的。event bus 允许程序中的不同语言编写的模块进行通信,不论他们是相同的ver
2015-07-13 10:53:43 13783 1
原创 activeMQ配置开机启动 linux
拷贝bin/activemq到/etc/init.d/ 修改/etc目录下rc2.d,rc3.d,rc4.d, rc5.d目录中的S01tomcat7更名为S04tomcat7,同时建立软连接:ln -s ../init.d/activemq S03activemq 在/etc/目录下 rc0.d, rc1.d, rc6.d 建立软连接 ln -s ../init.d/activemq K01activemq 拷贝bin/env 到 /etc/default/activemq,并编辑 ACTIVE
2015-07-03 18:28:24 3813
转载 【Web容器】Linux下Apache+Resin服务器的安装与配置
说明:以下安装过程基于Centos 5.4 (64位)操作系统。1、首先安装apache(1)下载apache,下载地址为:http://mirror.esocc.com/apache//httpd/httpd-2.2.26.tar.gz(2)tar zxvf httpd-2.2.26.tar.gz(3)cd httpd-2.2.26(4)./configure --prefi
2015-07-03 17:28:26 574
原创 You must SET PASSWORD before executing this statement的解决方法
参考前文利用安全模式成功登陆,然后修改密码,等于给MySql设置了密码。登陆进去后,想创建一个数据库测试下。得到的结果确实: ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 非常诡异啊,明明用密码登陆进去了,怎么还提示需要密码。 mysql> create database
2015-07-03 15:05:42 769
原创 centos 防火墙规则开放22 80 ,8080
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -
2015-07-03 12:19:21 1068
转载 安装软件:/lib/ld-linux.so.2: bad ELF interpreter解决
我们在CentOS系统中安装软件:/lib/ld-linux.so.2: bad ELF interpreter的解决办法! 环境: [orangle@localhost Downloads]$ uname -m&&uname -r x86_64 2.6.32-220.el6.x86_64 [orangle@localhost Downloa
2015-07-03 11:13:57 2935
转载 jquery checkbox反复调用attr('checked', true/false)只有第一次生效
/** * 全选 */ function checkAll() { $("input[name=ids]").attr("checked", true); } /** * 全不选 */ function uncheckAll() { $("input[name=ids]").attr("chec
2015-07-01 12:05:13 539
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人