在Kotlin Spring Boot tutorial中,它要求您包含web依赖项,如下所示:

但在实际的Spring Boot initializr中,我没有看到这一点:

所需的web依赖是什么?是Spring Web Starter吗?本教程是否已过时和/或过时?
发布于 2019-08-03 08:01:10
你需要选择spring web starter,它就是他们在教程中提到的。
这是它的全称。
如果你看一下教程,他们后来在那里显示了pom.xml,你可以看到他们已经声明了:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>而且这门课看起来还是不错的,所以去试试吧。
https://stackoverflow.com/questions/57333734
复制相似问题