Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Spring Basics Spring Components and Configuring Our App Adding a Spring Configuration File

Spring Framework boot versions confusing. bootRun not working with latest versions. Could you help?

I went to the page MVPREPOSITORY https://mvnrepository.com/artifact/org.springframework/spring-webmvc?repo=springio-plugins-release looking for the latest version and found versionns 5, but none of them worked with the fail of bootRun here. What should I do?

1 Answer

zack wooters
zack wooters
4,536 Points

Try this for your build.gradle

plugins { id 'java' id 'idea' id 'eclipse' id 'org.springframework.boot' version '2.1.7.RELEASE' }

group 'com.teamtreehouse' version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories { mavenCentral() }

dependencies { compile 'org.springframework.boot:spring-boot-starter-web:2.1.7.RELEASE' }

Hi Zack, now it's working perfectly fine. Where did you get that version from? I looked for the latest versions in the "official" we b page and it showed something like 5. something.

zack wooters
zack wooters
4,536 Points

Hi Murilo, glad to hear it works fine. I just googled spring-boot-starter-web and got https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web