标题说。在Javalin tutorial之后,学习kotlin并在mvn package
上获取未解决的参考资料。我想我需要引入一个依赖项,但是这个例子没有显示它,谷歌让我失望了。我的pom.xml很大,但我的版本信息如下:
<properties>
<kotlin.version>1.1.3-2</kotlin.version>
</properties>
我当前的依赖列表是:
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jre8</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>io.javalin</groupId>
<artifactId>javalin</artifactId>
<version>0.3.3</version>
</dependency>
</dependencies>
不确定从哪里开始。
答案 0 :(得分:1)
在课程UserDao
中,您忘记添加以下导入
import java.util.concurrent.atomic.AtomicInteger
样本的所有来源都可以在github(https://github.com/tipsy/javalin-kotlin-example)上获得,因此您可以将其作为参考。