사용자 도구

사이트 도구


springframework:profile

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

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:3.1|Spring Framework 3.1]] 부터 가능   * [[springframework:3.1|Spring Framework 3.1]] 부터 가능
 +  * [[http://gal-levinsky.blogspot.co.il/2012/07/spring-profile-pattern-part-1.html|Gal Levinsky: Spring Profile pattern , part 1]]
 +
 +===== Profile Annotation =====
 +프로필별로 Package 탐색으로 생성되는 Spring Bean 지정을 자동화하기.
 +
 +<code java>
 +@Target(ElementType.TYPE)
 +@Retention(RetentionPolicy.RUNTIME)
 +@Profile("dev")
 +public @interface Dev {
 +}
 +
 +
 +// dev 프로필에서만 생성되는 빈
 +@Dev
 +@Component
 +public class SomeComponent {
 + ...
 +}
 +</code>
  
springframework/profile.txt · 마지막으로 수정됨: 2013/11/27 11:45 저자 kwon37xi