Intellij 에서 Spring Boot application.yml 또는 application.properties 를 못 읽어 올 때 (Resource 접근 안될 때)
intellij 2021. 6. 14. 15:03

Intellij 2019, Intellij 2020 버전에서 다음과 같이 Profile을 못 읽어 올 때가.. 솔직히 모든 경우 이랬다. No active profile set, falling back to default profiles: default 위와 같이 application.properties나 application.yml에 profile을 active 한다고 해도 gradle의 bootrun이 아닌 intellij에서 제공하는 Run 기능으로 진행 할 경우 위와 같이 이를 인식 하지 못한다. 정확히 말하자면 Run으로 Spring Boot를 실행하면 application.properties가 존재하는 resources 디렉토리 자체를 인식 하지 못하는 것이다. 아래 보면 bootRun을 Gr..