In Spring Boot, to resolve property values from environment variables, you can use the _____ placeholder in the application properties file.
- ${config}
- ${env}
- ${property}
- ${spring}
In Spring Boot, you can use the ${env} placeholder in the application properties file to resolve property values from environment variables. This is useful for configuring your Spring Boot application dynamically based on the environment it runs in, such as setting database connection parameters or API keys from environment variables.
Loading...
Related Quiz
- You are developing an application with multiple authentication providers, including LDAP and a custom database. How would you configure Spring Security to authenticate users using multiple authentication providers?
- The _____ annotation in Spring is used to give a preference to a bean when multiple beans of the same type exist.
- How can you secure microservices using OAuth2 and JWT in a Spring Boot application?
- The _____ annotation in JUnit is used to indicate that a method should be executed after all tests in the current test class have been run.
- In the context of Global Method Security, how can custom permission evaluators be integrated to extend the functionality of method security expressions?