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
Justin Rich
19,556 PointsCan't Connect To Local Host on bootRun
I've setup everything in my build.gradle file as well as created a package and AppConfig.java class. However, after I "bootRun" when I try to connect to localhost:8080 I get "The site can't be reached" instead of the screen the instructor got. I'm pretty sure I've got everything coded in right, but to be sure here's my class:
import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
/**
- Created by justin on 12/1/16. */ @EnableAutoConfiguration public class AppConfig { public static void main(String[] args){ SpringApplication.run(AppConfig.class, args); } }
Could it be that my computer is running on another port?