You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource/properties/env.properties 생성 후 아래 구조로 설정파일 수정
propertyConfig 파일 생성
package swmaestro.spaceodyssey.weddingmate.global.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
@Configuration
@PropertySources({
@PropertySource("classpath:properties/env.properties") // env.properties 파일 소스 등록
})
public class PropertyConfig {
}
로컬에서 연결 확인 후 env.properties와 propertyConfig는 .gitignore에 등록
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://jforj.tistory.com/254
[로컬]
resource/properties/
![image](https://private-user-images.githubusercontent.com/68282057/254169467-e3eeb998-d856-4637-88d5-5c8c334e7b2c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4Mjg0MDgsIm5iZiI6MTcyMzgyODEwOCwicGF0aCI6Ii82ODI4MjA1Ny8yNTQxNjk0NjctZTNlZWI5OTgtZDg1Ni00NjM3LTg4ZDUtNWM4YzMzNGU3YjJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDE3MDgyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNzgyZTE1ZjU1N2M4NDM0OGUzNjBjOGY2NjYzMTg2NzIwN2NmMTRmNDFlNGJkOTk1NTkwZTg0N2IyYjg0NDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6jwmWQ0sxKMjXdsP_lxQPic98T1fJjXIPcftaAJhBA4)
env.properties
생성 후 아래 구조로 설정파일 수정propertyConfig
파일 생성로컬에서 연결 확인 후
env.properties
와propertyConfig
는.gitignore
에 등록[개발서버]
해당 env 파일은 github secret
ENV
변수에 넣기Beta Was this translation helpful? Give feedback.
All reactions