同步操作将从 cloudopt/cloudopt-next 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Cloudopt Next is a very lightweight and modern, JVM-based, full stack kotlin framework designed for building modular, easily testable JVM applications with support for Java, Kotlin language, crafted from the best of breed Java libraries and standards.
Cloudopt Next has the following features:
Simple Minimalist design, almost no configuration, no dependence on tomcat, jetty and other web containers.
Asyn Based on vertx, it is easy to achieve high-performance asynchronous services.
Plugin Supports various components of the vertx system, and also supports the extension of functions through plug-ins. The official also provides a large number of useful plug-ins.
Chinese All Chinese documents, Chinese community to help Chinese developers get started quickly
You can view the document by visiting the official website of Cloudopt Next, or you can go to example to see a simple example.
Let's take a look at a simple route based on Cloudopt Next:
@API("/")
class IndexController : Resource() {
@GET
fun get(){
renderHtml(view = "index")
}
}
@API(value = "/")
public class IndexController extends Resource {
@GET
public void get(){
View v = new View();
v.setView("index");
renderHtml(view);
}
}
fun main(args: Array<String>) {
CloudoptServer.run()
}
public static void main(String args[]) {
CloudoptServer.run();
}
@SocketJS("/socket/api/*")
class SocketController : SocketJSResource {
override fun handler(socket: SockJSSocket) {
println(socket)
socket.handler {message->
println(message)
socket.write("Hello world!")
}
}
}
fun main(args: Array<String>) {
CloudoptServer.addPlugin(TestPlugin())
CloudoptServer.addPlugin(EventPlugin())
CloudoptServer.run()
}
Having trouble with Cloudopt Next? We’d like to help!
Cloudopt Next uses GitHub’s integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:
Cloudopt Next is Open Source software released under the Apache 2.0 license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。