Jasypt의 Secret Key를 VM Options에 추가해놓은 게 Test 환경에서는 읽히지 않아 오류가 발생했다.
Failed to bind properties under 'spring.datasource.password' to java.lang.String:
Reason: java.lang.IllegalArgumentException: Could not resolve placeholder
'jasypt.encryptor.password' in value "${jasypt.encryptor.password}"
Action:
Update your application's configuration
테스트가 정상적으로 작동하긴 했지만, 콘솔 창에 뜨는 경고가 찝찝해서 찾아봤다.
단순한 경고라 무시해도 괜찮지만, 신경쓰인다면 아래 방법을 사용해보자.
Java HotSpot(TM) 64-Bit Server VM warning:
Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Reference