문서의 이전 판입니다!
@SpringBootTest(properties = {"some.username=user", "some.password=pwd"}, webEnvironment = SpringBootTest.WebEnvironment.NONE)
@TestPropertySource(locations="classpath:test.properties") public class ExampleApplicationTests { } You can use @TestPropertySource @TestPropertySource( properties = { "some.username=validate", "some.password=false" } )