Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In this video, we'll add the minimum required configuration details for Spring, so that upon launching our application, all components are properly discovered.
Localhost
Localhost is the alias or hostname that maps to the IP address of your own local machine. That IP address is 127.0.0.1.
Configuration with JavaConfig or XML
If you want to explore alternate forms of configuring your Spring application, check out the Spring docs for Enabling the MVC Java Config or the MVC XML Namespace.
In the case of JavaConfig, you'll substitute the @EnableAutoConfiguration
annotation for @EnableWebMvc
, and then add methods that programmatically define, for example, your template engine, such as Thymeleaf.
In the case of XML, you'll place your Spring configuration into one or more XML files placed in your classpath. The resources
directory is on the classpath, so these files can be placed here.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
Rhett Herring
Courses Plus Student 11,023 Points1 Answer
-
Di Ioffe
Full Stack JavaScript Techdegree Student 260 Points6 Answers
-
Murilo de Melo
14,456 Points1 Answer
-
Tayseer Edouni
13,927 Points3 Answers
-
Erik Gratz
19,266 Points1 Answer
-
saisindhoor palla
110 Points1 Answer
-
Tornike Shelia
2,781 Points2 Answers
-
PLUS
Vaibhav Yaramwar
Courses Plus Student 4,292 Points2 Answers
-
Suman Polepaka
632 Points2 Answers
-
Emanuel Vasconcelos
4,248 Points0 Answers
-
Praveenkumar Chandrashekaraiah
718 Points0 Answers
-
Sabina Belyaeva
7,310 Points1 Answer
-
nyk arora
113 Points0 Answers
-
PLUS
Hammad Arif
Courses Plus Student 425 Points1 Answer
-
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsI don’t have an ‘application’ folder under Gradle projects > giflib >Tasks. What am I doing wrong?
4 Answers
-
PLUS
Deano k
Courses Plus Student 5,872 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up