问题描述
我刚下载了Springsource Tool Suite,我创建了一个名为myDefinition.xml的简单bean配置文件,并将其放在Spring Project的根目录下。但是,Spring Explorer没有显示任何数据。我使用eclipse 3.5和最新的SpringSource all-in-one安装。另外,如果在配置文件中指定了无效的属性名称,我没有错误。但是,自动完成正在运行。
想法?
Eclipse中的Spring Explorer选项卡,右键单击您的项目>属性。然后去Spring> Beans Support,选择Config Files选项卡。然后,您可以选择文件或扫描目录,并添加它们。我没有找到一个自动扫描目录的方法,所以我不必这样做,当我添加一个新的spring bean文件。出现在该列表中的bean存储在.springbeans文件中。
I just downloaded the Springsource Tool Suite, and I created a simple bean configuration file called myDefinition.xml and placed it in the root directory of the Spring Project. However, the Spring Explorer is not showing any data. I'm using eclipse 3.5 and the latest SpringSource all-in-one installation.
Also, if I specify invalid property names in the configuration file, I get no error. Autocomplete, however, is working.
Thoughts?
In the Spring Explorer tab in Eclipse, right click on your project > properties. Then go to Spring > Beans Support and select the Config Files tab. You can then select files or scan a directory and that should add them. I haven't found a way to autoscan a directory so I don't have to do this whenever I add a new spring bean file. The beans that appear in that list are stored in the .springbeans file.
这篇关于Spring Explorer不显示bean定义文件中的bean的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!