kotlin 官网
http://kotlinlang.org/
package hello
fun main(args: Array<String>) {
println("Hello World!")
}
vertx官网
http://vertx.io/
Documentatio各种文档
http://vertx.io/docs/
web application examples.
https://github.com/vert-x3/vertx-examples/tree/master/web-examples
gradleplugin 查找插件
https://plugins.gradle.org/
shadow
https://plugins.gradle.org/search?term=shadow
intelij IDEA gradle构建项目
build.gradle 构建配置文件
apply plugin: 'application' 添加 application 就有run了
buildscript.dependencies
构建时的依赖
dependencies
运行时的依赖
mainClassName
=
'io.vertx.core.Launcher'
项目启动的入口类
intelij IDEA
make directory as source 标记文件的类别,文件夹右键
kotlin 进入函数方式:control+单击
import io.vertx.ext.web.Router 添加import方式 alt+enter
// 选中注释多行代码 control+/

这篇博客介绍了如何使用Kotlin语言,结合Gradle构建工具和Vert.x框架创建Web应用程序。首先,它引导读者访问Kotlin和Vert.x的官方网站获取资源。接着,展示了如何在IntelliJ IDEA中配置Gradle项目,特别是应用'application'插件以添加运行配置,并管理构建时和运行时的依赖。此外,还提到了设置主类名和将目录标记为源代码的过程。最后,提到了在IntelliJ IDEA中快速导入和注释代码的快捷方式。

被折叠的 条评论
为什么被折叠?



