Notice
Recent Posts
Recent Comments
Link
Dev.끄적끈적
[Debug][Spring boot] 에러해결 - Property 'spring.profiles.active' imported from location 'class path resource [application-local.yml]' is invalid in a profile specific resource [origin: class path resource [application-local.yml] - 3:13] 본문
카테고리 없음
[Debug][Spring boot] 에러해결 - Property 'spring.profiles.active' imported from location 'class path resource [application-local.yml]' is invalid in a profile specific resource [origin: class path resource [application-local.yml] - 3:13]
YeouidoSexyDeveloper 2022. 5. 2. 17:51WebSocket 을 사용하여 채팅서비스를 구현중 이러한 애러가 발생하였다.
채팅 정보들을 저장하기위해 redis를 사용하고자 하였고,
먼저 로컬에 Redis서버를 설치해야 되나? 아니다.
Springboot 에 로컬에서 사용하기 위해 Embeddd Redis 를 지원하는 라이브러리가 있다.
로컬환경에서만 우선 확인해보기위해 application.yml 파일을 나누는 과정에서 발생하였다.
org.springframework.boot.context.config.InvalidConfigDataPropertyException: Property 'spring.profiles.active' imported from location 'class path resource [application-local.yml]' is invalid in a profile specific resource [origin: class path resource [application-local.yml] - 3:13]
검색결과, Spring Boot 2.4부터 application.yml 파일의 구동방식이 변경 되었기 때문에 발생한 오류.
아래와 같은 형식으로 마이그레이션 해주며 해결할 수 있었다.