我需要使用 maven 才能使用 Spring Boot,还是有 jar?

Do I need to use maven in order to use Spring Boot, or is there a jar?

我有一个 Spring 项目目前不使用 maven,我只使用 jars 作为我的库。

我正在尝试使用 spring 引导,但它不在我的任何 spring 库中,所以我去寻找一个 jar,但似乎没有。这是真的?我是否需要使用 maven 或其他等效工具才能使用 Spring Boot?

您可以从 Maven repository 下载您需要的所有 jar。只需单击所需的工件和版本,您就会看到 下载 (JAR) link.

两种方法都可以,但最安全和正确的方法是使用 Maven,因为它基于依赖项工作。

只需更改启动版本即可使用以下代码。

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <version>1.2.3.RELEASE</version>
</dependency>

是的,您可以下载 jar,autoconfigure jar is the one will configure all stuff for you "boot" the application. BUT you'll need download manually, all jars, dependencies, since the starters are just pom's to do this work for you. For you sanity it's way better to use a dependency management tool, such Maven or Gradle。它们很容易上手。