After upgrading from Spring 2.7.10 to 3.2.0 I'm getting the spring.profiles error.
application.properties -
spring.profiles.active=@activatedProperties@
run.xml (Environment properties) -
<envs>
<env name="SPRING_PROFILES" value="prod" />
</envs>
pom.xml -
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<profiles>
<profile>
<id>dev</id>
<properties>
<activatedProperties>dev</activatedProperties>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<activatedProperties>prod</activatedProperties>
</properties>
</profile>
</profiles>
</configuration>
</plugin>
Comment From: wilkinsona
This is due to your SPRING_PROFILES environment variable which maps to spring.profiles. Support for spring.profiles was removed in Spring Boot 3.0.