Springboot Configuration에서 env값 읽기
1. application.yml
spring:
datasource:
username: ${USERNAME}
password: ${PASSWORD}
2. 실행스크립트
$ cat service-start.sh
#!/bin/bash
USERNAME=${env | grep USER_NAME= | cut -c 11-20}
PASSWORD=${env | grep PWD= | cut -c 5-20}
...
java -jar target/*.jar