이 설정이 필요한 이유는 기존 배포되던 application.properties 파일을 수정하는 것이 아닌
개인 로컬 PC에 맞게 세팅 값을 변경하며 사용하기 위함 이다.
변경 방법
1. application-dev.properties 파일 생성
application-dev.properties 파일이 존재하는 폴더에 똑같이 생성해주면 된다.

2. 시스템 환경 변수에 아래와 같이 추가해준다.

3. PC 재시작을 하면 적용 완료
특징
application.properties의 설정 값을 무시하는 것이 아닌
application.properties의 설정 값을 먼저 설정한 후
application-dev.properties의 설정 값을 덮어쓰기 하는 것이다.
'프로그래밍 > Spring' 카테고리의 다른 글
| [Spring Boot > ERROR]org.springframework.beans.factory.UnsatisfiedDependencyException: (0) | 2024.10.07 |
|---|---|
| [Spring Boot > ERROR] through reference chain (0) | 2024.10.05 |
| Spring Boot에서 Swagger 사용하기 (0) | 2024.08.06 |
| Spring Security logout 설정 (0) | 2024.07.26 |
| Eclipse에서 Spring Legacy, Spring MVC Project 사용하기 (0) | 2024.07.18 |