我正在关注Spring使用REST API教程:http://spring.io/guides/gs/rest-service/
在git cloning gs-rest-service / initial项目之后,我将此项目作为Spring Tool Suite中的现有项目导入。
但是在Package Explorer视图中,我没有看到src / main中的任何文件夹,但是在硬盘驱动器中,当我尝试创建新文件夹时,我确实看到了这些文件夹:java/hello
再次。如何使这些文件夹出现在Eclipse的Package Explorer边栏中?
[] [] 2
答案 0 :(得分:0)
你的包裹是空的吗?
您是否刷新了工作区?
检查您的Java元素过滤器'你没有空包裹#39;检查了吗?
答案 1 :(得分:0)
Package Explorer is a virtual view of your project, so what you're seeing is that virtual representation has "relocated" Java sources to a virtual folder in that view. Package Explorer represents source locations (such as src/main/java
) as a package container instead of an ordinary folder. Look at the first node under the project; it has a different icon and is labeled src/main/java
- that's where the source files are presented.
If you want a more literal file-system view, open the Navigator view. Also look at Project Explorer, which shows both the literal view and the "virtual" view that Package Explorer shows.