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
Suman Polepaka
632 PointsI 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?
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
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); } }
2 Answers
Daniel Vargas
29,184 PointsBut you are getting the same results Chris had, so you're doing just fine.
If you want to see the Spring logo and all the other info while your server loads, you could press the little icon at the top left corner: https://ibb.co/bBzDMv
Daniel Vargas
29,184 PointsHi,
If this is all the code you have:
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);
}
}
Then you're getting the correct result, the 404 message is trigger from your application, it means the server is running but it can't find any templates (since you haven't code one yet).
Suman Polepaka
632 PointsI am just following the course. Why is it working in the course?. Course link: https://teamtreehouse.com/library/spring-basics/spring-components-and-configuring-our-app/adding-a-spring-configuration-file.
Suman Polepaka
632 PointsSuman Polepaka
632 PointsThanks, that helped! :)