kotlin web
In this tutorial, we’ll learn how to create Kotlin Web Application. We assume that you’re well versed with Java EE and Kotlin before going down the business end of this tutorial.
在本教程中,我们将学习如何创建Kotlin Web应用程序。 我们假设您在开始学习本教程的业务之前对Java EE和Kotlin十分熟悉。
Kotlin Web应用程序 (Kotlin Web Application)
Java EE is an extension of the Java SE and is used for creating web applications, rest web services and essentially anything related to web (not to forget microservices).
Java EE是Java SE的扩展,用于创建Web应用程序, 其余Web服务以及与Web相关的任何内容(不要忘记微服务)。
We’re also well aware that Kotlin, the latest language developed by JetBrains is statically typed and is based on JVM. It’s a fact that Kotlin is there with an aim to address the issues that Java Developers face.
我们也很清楚,JetBrains开发的最新语言Kotlin是静态类型的,并且基于JVM。 Kotlin的存在就是为了解决Java开发人员面临的问题,这是事实。
Kotlin is concise, clear and has a very friendly syntax to learn and adapt to. Moreover, it is 100% interoperable with Java, compiles easily to Java 6 and Java 8 bytecode.
Kotlin简洁明了,并具有非常友好的语法来学习和适应。 此外,它与Java 100%互操作,可轻松编译为Java 6和Java 8字节码。
Knowing that Kotlin has so many advantages over Java, why not adopt it in our Java EE environment.
知道Kotlin比Java具有许多优势,为什么不在我们的Java EE环境中采用它。
That’s what this tutorial is all about. We’ll be developing a simple Web Application using Kotlin, Servlets and Tomcat localhost server. Before that let’s see the challenges faced in integrating Kotlin in a Java EE Application.
这就是本教程的全部内容。 我们将使用Kotlin,Servlet和Tomcat localhost服务器开发一个简单的Web应用程序 。 在此之前,让我们看看将Kotlin集成到Java EE应用程序中所面临的挑战。
- Kotlin classes are final by defaul