본문 바로가기
개발/Spring

Property 'spring.profiles.active' imported from location 'class path resource [application-dev.yml]' is invalid

by 설이주인 2023. 12. 24.

application.yml 설정시

 

application-dev.yml  파일 명으로 명시하는 방법

yml 파일안에 spring.profiles.를 설정하는 방법 둘중 하나만 하면 된다.

 

No need to mention spring.profiles.active property if file name is application-dev.yml ( spring boot new version )