This is an easy way to set/get environment variable in the Spring Framework with Kotlin/Java.
👽 Set/Get env variable
Please add Environment variable by IntelliJ > Menu > Run > Edit Configurations > Environment Variables
If you want to add APP_TIMEZONE=JST
in Environment variable, you can get the variable by the following code:
// convert `_` to `.` |
🍮 References
- https://qiita.com/kazuki43zoo/items/0ce92fce6d6f3b7bf8eb
- http://rennnosukesann.hatenablog.com/entry/2018/12/20/184815
- https://qiita.com/cfg17771855/items/905da3100ae99c5197f0
🖥 Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!