반응형 profile1 spring profile, 스프링 profile, spring 환경별 구성 다르게 하기, spring 설정방법, spring.profiles.active spring profile이란스프링 프로파일(Spring Profile)은 스프링 프레임워크에서 애플리케이션의 환경 설정을 구분하기 위한 기능입니다.프로파일은 애플리케이션을 실행할 때 선택할 수 있습니다.예를 들어, 개발 환경에서는 "dev" 프로파일을 선택하고,운영 환경에서는 "prod" 프로파일을 선택할 수 있습니다.예를 들어, 동일한 로직을 수행하는 스프링 app을 운영/개발 환경에 각각 배포하여,각각 운영/개발 db에 접속하고자 하는 경우, 아래와 같은 구조로 deploy 할 수 있습니다.@startuml component 운영환경 { component B as "spring app.jar" { component D as "dev profile" component E as "prod profile.. 2024. 11. 13. 이전 1 다음 반응형