大家好,我是Vertx的newby。今天我用python实现了一个非常简单的vertx应用程序,但是它不工作。
以下是python代码
web_server_conf = {
'port' : 8080,
'host' : 'localhost'
}
# Start the web server, with the config we defined above
import vertx
vertx.deploy_verticle('vertx.web-server-v1.0', web_server_conf)但是我得到一个类似下面的错误
C:\dev\tools\vert.x-1.3.0.final>vertx运行服务器找不到verticle vertx.web- app.py -v1.0
我已经在$VERTX_HOME\mods中安装了该模块,javascript版本的示例运行良好。
load('vertx.js');
var webServerConf = {
port: 8080,
host: 'localhost'
};
// Start the web server, with the config we defined above
vertx.deployModule('vertx.web-server-v1.0', webServerConf);你能帮帮我吗?
发布于 2014-01-24 23:13:09
我用的是1.3,我升级到了2.1M3。
在互联网上,基于老版本的vertx和模块的例子有很多。所以还是从官方页面开始比较好。(vertx.io)它可以减少混淆。
仅供参考。
除了x @tim_yates之外
https://stackoverflow.com/questions/21334212
复制相似问题