there are application.properties and application-dev.properties and application-prod.properties files in the 1.springboot project.
where environment switching can be performed in application.properties
spring.profiles.active=dev
now I package with the following parameters, but these three configuration files are always included in the packaged file.
mvn clean package -Dmaven.test.skip=true -Dprofiles.active=dev
mvn clean package -Dmaven.test.skip=true -Pprod
what I actually want is that the development environment packages only one configuration file . Could you tell me how to operate it?