1. spring.profiles.active
- env
JAVA_OPTS=-Dspring.profiles.active=prd
SPRING_PROFILES_ACTIVE=prd- use
@Value("${spring.profiles.active}") String springProfilesActive
2. Dependency Injection
여러 방법이 있다..
- 필드 주입(Field Injection)
- 수정자 주입(Setter Injection)
- 생성자 주입(Constructor Injection)
현업에서는 Field Injection을 제일 많이 쓰는듯.. Constructor Injection만 쓰기로 한다. 나머지는 다 없어졌으면...
- Related Web Pages
3. See Also
3.2. Similar Pages
Similar pages by cosine similarity. Words after page name are term frequency.