To bind the properties defined in the YAML file to a Java object, you can use the _____ annotation in Spring Boot.

  • @Autowired
  • @ConfigurationProperties
  • @PropertySource
  • @Value
To bind the properties defined in the YAML file to a Java object in Spring Boot, you can use the @ConfigurationProperties annotation. This annotation allows you to map YAML or properties file values to fields in a Java object, making it a powerful tool for handling configuration in Spring Boot applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *