run spring boot application with maven profile code example Example: spring boot maven run with profile mvn spring-boot:run -Drun.profiles=dev