문서의 선택한 두 판 사이의 차이를 보여줍니다.
|
springframework:profile [2013/11/27 11:42] kwon37xi 새로 만듦 |
springframework:profile [2013/11/27 11:45] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Spring Framework Profile ====== | ====== Spring Framework Profile ====== | ||
| * [[springframework: | * [[springframework: | ||
| + | * [[http:// | ||
| + | |||
| + | ===== Profile Annotation ===== | ||
| + | 프로필별로 Package 탐색으로 생성되는 Spring Bean 지정을 자동화하기. | ||
| + | |||
| + | <code java> | ||
| + | @Target(ElementType.TYPE) | ||
| + | @Retention(RetentionPolicy.RUNTIME) | ||
| + | @Profile(" | ||
| + | public @interface Dev { | ||
| + | } | ||
| + | |||
| + | |||
| + | // dev 프로필에서만 생성되는 빈 | ||
| + | @Dev | ||
| + | @Component | ||
| + | public class SomeComponent { | ||
| + | ... | ||
| + | } | ||
| + | </ | ||