All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jkcode.jkmvc.server.JettyServerLauncher.kt Maven / Gradle / Ivy

Go to download

Jkmvc is an elegant, powerful and lightweight MVC & ORM framework built using kotlin. It aims to be swift, secure, and small. It will turn java's heavy development into kotlin's simple pleasure. No spring.

The newest version!
package net.jkcode.jkmvc.server

import net.jkcode.jkmvc.server.JettyServer

/**
 * jetty server启动器
 *
 * 启动时报错: `java.lang.NoClassDefFoundError: javax/servlet/ServletRequest`
 * 原因: gradle的 war 插件自动将 javax.servlet-api 弄成 providedCompile, 你就算在工程的build.gradle 改为 compile 也没用
 * fix: project structure -> modules -> 选中 JettyServerLauncher 应用的工程 -> depencies -> 选中 Gradle: javax.servlet:javax.servlet-api:3.1.0 包, 将 scope 由 provided 改为 compile
 *
 * @author shijianhang<[email protected]>
 * @date 2019-03-29 5:01 PM
 */
object JettyServerLauncher {

    @JvmStatic
    fun main(args: Array) {
        JettyServer().start()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy