Spring-boot default profile for integration tests

后端 未结 11 1061
说谎
说谎 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 14:51

    To activate "test" profile write in your build.gradle:

        test.doFirst {
            systemProperty 'spring.profiles.active', 'test'
            activeProfiles = 'test'
        }
    

提交回复
热议问题