Miroslav Trninic
Miroslav Trninic

Reputation: 3455

spring maven active profile

I am trying to run the Spring application from the server.

What is the difference between:

mvn spring-boot:run -Dspring.profiles.active=dev

and

mvn spring-boot:run -Dspring-boot.run.profiles=dev

Tnx

Upvotes: 3

Views: 2071

Answers (1)

Vladimir Stanciu
Vladimir Stanciu

Reputation: 1536

The difference is that the second property, spring-boot.run.profiles, comes from the Spring Boot Maven plugin which allows you to define profiles in your pom.xml, while spring.profiles.active comes from spring and can be used without any plugin, but in the end, they can do the same thing.

Upvotes: 7

Related Questions