Spring-boot default profile for integration tests

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

    You could put an application.properties file in your test/resources folder. There you set

    spring.profiles.active=test
    

    This is kind of a default test profile while running tests.

提交回复
热议问题