티스토리 뷰

* 개요 

JUnit Test 하려 하는데 다음 오류 메시지

 

SpringBootTest Could not resolve placeholder 'spring.profiles.active'

 

 

* 환경

SpringBootTest

Junit 5

 

 

* 해결

@SpringBootTest(properties = "spring.profiles.active:local")

https://github.com/spring-projects/spring-boot/issues/19788

 

Using @ActiveProfiles with @SpringBootTest now adds to the profiles configured using spring.profiles.active rather than overridi

Hello, I have active profile issues with Spring Boot 2.2.3.RELEASE. Step to reproduce : git clone https://github.com/spring-projects/spring-petclinic add spring.profiles.active=prod to application....

github.com

@ActiveProfiles 안됨

@PropertySource 안됨

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함