Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- css framework
- rpg server
- screencapture
- Google Refund
- draganddrop
- react
- mongoDB
- OverTheWire
- docker
- Spring Boot
- Packet Network
- spread 연산자
- Google Developer API
- Digital Ocean
- express
- Camera Zoom
- Git
- SDK upgrade
- critical rendering path
- MySQL
- Unity Editor
- springboot
- linux
- --watch
- server
- nodejs
- java
- Camera Movement
- unity
- Unity IAP
Archives
- Today
- Total
목록.env (1)
우당탕탕 개발일지
[SpringBoot] 민감한 데이터 .env 에 보관/사용하기
메일보내기를 하면서 내 이메일과 앱 비밀번호를 application.properties에 넣어야하는데, application.properties는 깃에 올라가기 때문에 보안상의 이슈가 있다. 그래서 .env파일로 옮기는 방법을 찾아보았다. 루트디렉토리( build.gradle 이 있는 위치)에 .env 파일을 생성하여 다음과같이 원하는 변수를 설정한다.##.envmail.username=myusernamemail.password=mypassword .gitignore 파일에 .env를 추가한다.git에 커밋되지 않도록 도와준다. build.gradle에 dependencies를 추가한다. .env안의 값을 가져올 수 있게 하는 라이브러리이다.implementation 'io.github.cdimasc..
Server
2025. 1. 12. 20:38