Java & Spring & SpringBoot
Spring Boot VM arguments 세팅 방법 (properites, profile, System.getProperty)
Grand_J
2022. 7. 26. 08:51
반응형
Spring Boot VM arguments 세팅 방법 (properites, profile, System.getProperty)
1. 프로젝트 오른쪽 클릭 > Run As > Run Configuration ... 클릭
2. Arguments 탭 > VM arguments 내 작성
-Dkey=value
3. Java에서 사용시 System.getProperty("key") 로 가져와서 사용
String license = System.getProperty("app.license");
끗12#!@#
반응형