Spring-boot default profile for integration tests

后端 未结 11 1076
说谎
说谎 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:16

    You can put your test specific properties into src/test/resources/config/application.properties.

    The properties defined in this file will override those defined in src/main/resources/application.properties during testing.

    For more information on why this works have a look at Spring Boots docs.

提交回复
热议问题