Javalin 教程产生 "Unresolved reference: AtomicInteger"

Javalin tutorial yielding "Unresolved reference: AtomicInteger"

标题如是说。跟随 Javalin tutorial 作为学习 kotlin 的一部分并在 mvn package 上获得未解决的参考。我想我需要引入一个依赖关系,但示例没有显示它并且 Google 让我失望了。我的pom.xml是large-ish,但是我的版本信息如下:

<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>

不太确定从这里到哪里去。

在 class UserDao 中您忘记添加以下导入

import java.util.concurrent.atomic.AtomicInteger

样本的所有来源都可以在 github (https://github.com/tipsy/javalin-kotlin-example) 上找到,因此您可以查阅它作为参考。