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 trialvenkatesh chennakesavula
Courses Plus Student 1,113 Pointshow
how to move to next tutorial ?
package com.teamtreehouse.sample;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
public class SpringConfig {
1 Answer
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsYou have to:
Apply the appropriate annotation to the application configuration class in SpringConfig.java so that Spring Boot will auto-configure your Spring app upon deployment.
This means you have to use annotation on class SpringConfig
.
Hint: both annotations are imported for you:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
All you have to do is to choose one, that enables auto configuration of your spring app ...
Do you see where it leads to ?
If you feel unfamiliar with what annotation is, please take this course:
Joshua Small
1,064 PointsJoshua Small
1,064 PointsVenkatesh,
Go back a few videos watch adding a Spring Configuration File. All you need to do is add @EnableAutoConifguration above the SpringConfig class.
J