Spring Explorer not showing beans from bean definition file

后端 未结 4 1514
隐瞒了意图╮
隐瞒了意图╮ 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 06:50

    There currently (as of 2012-04-10) seem to be problems with the Spring Explorer view when using a purely annotation driven bean definition (i.e. using Java annotations to wire everything up instead of using XML files).

    There is a workaround though, by providing a minimum XML file that declares scanning for components. http://forum.springsource.org/showthread.php?118928-Spring-Explorer-with-Java-based-Web-Container-configuration

    Unfortunately, this procedure is still flawed, missing some components.

提交回复
热议问题