Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Murilo de Melo
Murilo de Melo
13,970 Points

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

Murilo de Melo
Murilo de Melo
13,970 Points

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