관리 메뉴

개발 노트

spring에서 다른코드 파일채로 import 시 발생 오류 본문

기타 팁

spring에서 다른코드 파일채로 import 시 발생 오류

hayoung.dev 2022. 11. 11. 10:16

1. 오류에 마우스 올리고 > fix project setup

2. The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files 

상단 오류가 뜨면 

원래 내 코드의 .settings 파일을 복사해서 실행할 코드의 같은 폴더에 붙여넣는다.

 

 

다른 방법

파일을 import할 때

gradle 파일이면 하단처럼 불러온다.

반응형