can not be named yunan because its located directly under the workspace root

新建spring boot項目時提示下面錯誤:

Project at 'C:\worksapce_all\workspace_test\swagger' can't be named 'yunan' 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 'swagger'.    swagger        line 0    Gradle Error Marker

原因是settings.gradle裏的rootProject.name名與工程名不一致導致的,改後工程右鍵gradle=>refresh gradle project即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章