> For the complete documentation index, see [llms.txt](https://dodeon.gitbook.io/study/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dodeon.gitbook.io/study/keesunbaik-concepts-of-spring-boot/04-practical-use/profile.md).

# 프로파일

## @Profile

{% tabs %}
{% tab title="BaseConfiguration.java" %}

```java
@Profile("prod")
@Configuration
public class BaseConfiguration {

    @Bean
    public String hello() {
        return "hello";
    }
}
```

{% endtab %}

{% tab title="application.properties" %}

```properties
spring.profiles.active=prod
```

{% endtab %}
{% endtabs %}

* spring.profiles.active
  * 프로파일 활성화
* spring.profiles.include
  * 프로파일 추가
* application-{profile}.properties
  * 프로파일용 프로퍼티 파일 생성
  *
