문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot:test [2018/09/27 16:32] kwon37xi |
springframework:springboot:test [2018/11/27 16:36] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[springframework: | * [[springframework: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== @SpringBootTest ===== | ||
+ | ==== 테스트용 프라퍼티 지정 ==== | ||
+ | <code java> | ||
+ | @SpringBootTest(properties = {" | ||
+ | webEnvironment = SpringBootTest.WebEnvironment.NONE) | ||
+ | </ | ||
+ | |||
+ | ==== Unable to find a @SpringBootConfiguration, | ||
+ | * '' | ||
+ | * 예: '' | ||
===== @TestProperties ===== | ===== @TestProperties ===== | ||
줄 11: | 줄 22: | ||
} | } | ||
+ | |||
+ | |||
+ | You can use @TestPropertySource | ||
+ | |||
+ | @TestPropertySource( | ||
+ | properties = { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ) | ||
</ | </ | ||
줄 18: | 줄 39: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | + | * [[https:// | |
- | + | * [[https:// | |
+ | * [[https:// |