This video describes the process for leveraging external properties to help configure your application context, including environment variables.
- [Instructor] All too often, in the development world,…you need to leverage properties or environment variables…to make your applications run in different environments.…Spring provides a very simple way of managing…these properties through the environment construct.…In Spring, an environment is populated by default…with all of the environment variables…passed to the application at startup.…In addition to environment variables, however,…you can load properties from the file system,…class path, or even remote servers.…
We're going to leverage these properties…to produce a hello world message…to the user through the console.…But keep in mind that this simple example…is no more complex than injecting database URLs,…remote resource URLs, application credentials,…and any other important config…that should not be hard coded…directly into your class files.…So let's get started with the properties file.…In src, main, resources, I want you to create a new file…called application.properties.…
In this file, I want you to create a property…
AuthorFrank P Moley III
- Introduction to Spring
- Configuring the ApplicationContext
- Using the Spring expression language
- Configuring proxies
- Autowiring beans
- Using lifecycle methods
- Configuring beans with XML
- Understanding the initialization phases of the bean lifecycle
- Aspect-oriented programming and Spring
Skill Level Intermediate
Learning Spring with Spring Bootwith Frank P Moley III1h 38m Intermediate
1. Spring Overview
2. Configuring the Application Context
3. Annotation-Based Configuration
4. XML-Based Configuration
5. Bean Lifecycle
6. Aspect Oriented Programming
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.