# @ConfigurationProperties

> Reference: [Spring Docs - @ConfigurationProperties](https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config)

* An annotation that retrieves and binds property values from `*.properties` or `*.yml` files to Java classes
* Using this annotation automatically handles binding for various notation styles
  * ex)

    | acme.my-project.person.first-name   | Recommended notation for properties and .yml                             |
    | ----------------------------------- | ------------------------------------------------------------------------ |
    | acme.myProject.person.firstName     | Standard camel case syntax.                                              |
    | acme.my\_project.person.first\_name | Notation usable in .properties and .yml (dash notation is more standard) |
    | ACME\_MYPROJECT\_PERSON\_FIRSTNAME  | Recommended when using system environment variables                      |
* The property file must be registered as a Bean for it to work properly


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chloe-codes1.gitbook.io/til/spring/spring-annotations/13_configurationproperties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
