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

I am stuck. When I run the bootRun, it keeps running forever. It only shows "Building.... Running for xx mins xx sec xx"

I am stuck. When I run the bootRun, it keeps running forever. It only shows "Building.... Running for xx mins xx sec xx". What is the problem? My program code is:

package com.teamtreehouse.giflib;

import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

@EnableAutoConfiguration public class AppConfig { public static void main (String[] args) { SpringApplication.run(AppConfig.class, args); } }

J Tan
J Tan
11,847 Points

Does the output show Tomcat running on localhost port 8080? Can you post the exact build output so we can help diagnose?

2 Answers

I get this page on 8080 port:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Sep 04 22:10:34 CEST 2017 There was an unexpected error (type=Not Found, status=404). No message available

The build output: http://take.ms/mUGnk

Had the same issue but resolved it using the answer here:

https://teamtreehouse.com/community/bootrun-is-taking-for-ever