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即可。

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