OneTwo
OneTwo

Reputation: 2483

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

I have a Spring project which currently doesn't use maven, I just use jars for my libraries.

I'm trying to use spring boot but it's not in any of my spring libraries so I went to look for a jar, but there doesn't seem to be any. Is this true? Do I need to use maven or some equivalent to use Spring Boot?

Upvotes: 0

Views: 230

Answers (3)

Joao Evangelista
Joao Evangelista

Reputation: 2465

Yes you can download the jars, the 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. They are easy to get started with.

Upvotes: 1

prashant thakre
prashant thakre

Reputation: 5147

You can do it in both ways but the safest and correct way is to go for maven as it works on dependency based.

You can use the below code just by changing the version of boot.

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

Upvotes: 0

Predrag Maric
Predrag Maric

Reputation: 24433

You can download all the jars you need from Maven repository. Just click on the artifact and the version you want, and you'll see Download (JAR) link.

Upvotes: 1

Related Questions