본문 바로가기

springBoot

Renaming project error가 발생했을 때

728x90

SpingBoot에서 Project명을 수정했을 때 간혹 이러한 에러가 뜬다.

Project at 'C:\project\springBoot\(이상한 프로젝트명)' can't be named '(프로젝트명)'
because it's located directly under the workspace root.
If such a project is renamed, Eclipse would move the container directory.
To resolve this problem, move the project out of the workspace root or configure it to have the name '(이상한 프로젝트명)'.

 

위와 같은 에러가 떴다면 해결방법은 간단하다.

 

1. setttings.gradle 파일을 열어서 rootProject.name을 바꾼 project명으로 바꿔준다.

 

2. project를 마우스 오른쪽 클릭한 뒤 Gradle에 Refresh Gradle Project를 클릭해 준다.

 

 

2단계로 에러는 간단히 해결되며 간혹 위 과정을 거치고도 해결이 안 된다면 프로그램을 껐다 켜거나 Problems에 해당 error내용을 마우스 우클릭 뒤 delete 시켜주면 에러를 무시해 준다.

728x90

'springBoot' 카테고리의 다른 글

React와 springBoot 연동 시키기  (0) 2024.05.05
mysql 의존성을 찾지 못하는 경우  (0) 2024.04.24