Spring-boot / Spring Cloud Config 구성하는 경ㅜ
- yml profile 설정시에 No such label Error
- NoSuchLabelException
org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: main
github에서 default branch를 master가 아닌 main으로 변경되었다.
그러나 여전히 master branch를 설정으로 인식하는 경우에 발생하는 에러이다.
Sol)
repository의 default branch 설정 값으로 변경
.yml or .properties 파일
spring.cloud.config.server.git.default-label=master #or main
'spring' 카테고리의 다른 글
Kafka on windows (0) | 2022.04.25 |
---|---|
[no main manifest attribute] 오류 (0) | 2022.04.07 |
spring-boot-maven-plugin not found 해결 방법 (0) | 2022.04.04 |
Spring RCE Patch (0) | 2022.04.04 |
“Dynamic Web Module 3.1 requires Java 1.7 or newer” 오류 해결 (0) | 2015.11.23 |