카테고리 없음
[boot] @ActiveProfiles, @TestPropertySource 사용하기
냐옴
2025. 3. 1. 20:31
@SpringBootTest
@ActiveProfiles("my") // application_my.yml 적용
@TestPropertySource(locations = "classpath:application_my.yml")
public class MyTest {
// 테스트 코드
}