728x90
- application.properties
: Spring boot가 application을 구동할 때 자동으로 로딩하는 파일 이름
- key=value 형식으로 정의
- ${random.*} 으로 랜덤값을 설정할 수 있음
- 플레이스 홀더
ex) name = SangGuk
fullname = ${name} Park
- yaml
- 커맨드 라인 아규먼트
: 터미널에서 jar파일 실행 시 정의
ex) java -jar target/파일명.jar --user.name=SangGuk
- OS 환경변수
: 환경변수에 SPRING_APPLIVATION_JSON로 정의해둔 값
ref : https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config
728x90
'Spring Boot' 카테고리의 다른 글
Properties 관리 (0) | 2022.02.14 |
---|---|
Spring boot 외부 설정의 우선순위 (0) | 2022.02.05 |
Spring boot Web Environment (0) | 2022.02.05 |
Spring boot Debug & Banner (0) | 2022.02.05 |
Spring boot package (0) | 2022.02.05 |
댓글