Tags
- ์์คํ ์ํํธ์จ์ด
- ๋ฆฌ๋ ์ค ๋ช ๋ น์ด
- MethodArgumentNotValidException
- Unity
- mysql
- ํจ์คํธ์บ ํผ์คX์ผ๋์
- datagrip
- Data Structure
- aligoapi
- spring ๊ตฌ๊ธ ์์ ๋ก๊ทธ์ธ
- spring์ผ๋ก https ์ ์ฉ
- node js
- SSL
- merge sort
- spring ์์ ๋ก๊ทธ์ธ
- Rp2๊ธฐ
- GIT
- MAKE US
- Java
- Spring
- @CreatedDate
- ๊ตฌ๊ธ ์์ ๋ก๊ทธ์ธ
- DATABASE
- docker
- OpenAPI
- java error
- Quick Sort
- RP 2๊ธฐ
- SQL
- C++
๋ชฉ๋กSecretKey (1)
YS's develop story
.env ํ์ผ๋ก secretkey ํ์ผ ๋ฑ๋กํ์ฌ ์ฌ์ฉํ๊ธฐ
gradle์ ์ถ๊ฐ // dotenv-java implementation 'io.github.cdimascio:java-dotenv:+' . envํ์ผ ์์ฑํ์ฌ ์ต์๋จ์ ๋ฃ๊ธฐ GOOGLE_MAP_API_KEY=apikey . gitignore๋ก. envํ์ผ ๋ฑ๋ก # Ignore .env files .env ์๋์ ๊ฐ์ด ๋ฑ๋ก๋ secretKey ์ฌ์ฉ private static Dotenv dotenv = Dotenv.load(); private static final String API_KEY = dotenv.get("GOOGLE_MAP_API_KEY"); application.yml ํ์ผ์ import: optional:file:.env[.properties] ํญ๋ชฉ ์ถ๊ฐ spring: profiles: ..
๊ธฐํ/ํจ์บ X์ผ๋์ ํ
ํฌ์ค์ฟจ
2023. 11. 18. 21:46