The _____ file in Spring Boot can be used to define configuration properties in YAML format.
- application.yaml
- application.properties
- application.yml
- application.config.yaml
In Spring Boot, the application.yaml file is used to define configuration properties in YAML format. YAML is a human-readable data format often preferred for configuration in Spring Boot. While Spring Boot also supports .properties files, they use a different format. Options 3 and 4 are variations of option 1 and do not represent valid Spring Boot configuration file names.
Loading...
Related Quiz
- In a scenario where there are multiple beans of the same type, how can one specify which bean should be Autowired?
- How can you configure a custom method security expression handler in Spring Security?
- The _____ property in Spring Boot is used to set the TTL (Time-To-Live) for cache entries.
- In Spring Boot, to map HTTP GET requests to a specific handler method, the _____ annotation is used.
- To define hierarchical properties in a YAML configuration file in Spring Boot, you can use _____.