Spring-boot default profile for integration tests

后端 未结 11 1051
说谎
说谎 2020-12-07 14:49

Spring-boot utilizes Spring profiles (http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html) which allow for instance to have separate co

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 15:07

    If you simply want to set/use default profile at the time of making build through maven then, pass the argument -Dspring.profiles.active=test Just like

    mvn clean install -Dspring.profiles.active=dev

提交回复
热议问题