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

Spring Boot 2.4 has improved the way that application.properties and application.yml files are processed.

See here for details: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide

Long story short: If you have for example an application-local.yml and inside you defined

spring:
profiles:
    active: local 

then just remove this entry in the yaml file.

Leave a Comment