Spring Explorer not showing beans from bean definition file

后端 未结 4 1463
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 06:41

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.

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 07:00

    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.

提交回复
热议问题