Introduction
Recently, I have a job to use a public repository.
But I don't want to make public my configuration information.
At last, I found a way to meet my requirements and introduce them.
Subject
Spring boot application properties file can set up OS system variables.
You can follow the instructions below.
1. Set the key and value in an application properties file as shown in the format below.
key=${OS_VARIABLES_NAME}
The value format must be ${OS_VARIABLES_NAME}.
2. Set the OS system variables.
I don't care if it's a system variable or user variable, but I did it as a user variable.
3. Restart your IDE.
4. Start your application.
Conclusion
I think the OS system variable is as sensitive as the windows registry.
Therefore I set up my variable in user variables.
Reference URL
더 많은 내용을 보시려면 아래를 참고하세요.
블로그의 다른 글
'[개발] 프레임워크 > Spring' 카테고리의 다른 글
[Spring F/W] Spring Batch (0) | 2023.10.23 |
---|---|
WebFlux (0) | 2023.10.22 |
How to use(insert) spatial data in mysql and JPA. (0) | 2019.07.22 |
Spring Lombok (0) | 2018.04.26 |
Spring으로 다국어 페이지 만들기 (0) | 2018.04.22 |