简体   繁体   English

如果在不同文件中定义了bean,spring ide和ref超链接单击将不起作用

[英]spring ide and ref hyperlink click doesn't work if bean is defined in different file

when I have a bean 当我有豆子时

  <bean name="myBean" class="mypackage.myBean">
    <property name="otherBean" ref="otherBeanRef" />
  </bean>

and I click on otherBeanRef I'm redirected to definition of otherBeanRef, however this only works if its in the same file. 然后单击otherBeanRef,将我重定向到otherBeanRef的定义,但是,仅当它在同一文件中时,此方法才有效。

how to configure spring ide to also support other spring files? 如何配置spring ide也支持其他spring文件?

您需要将两个文件都添加到Spring Spring Config File Set中。

Spring Explorer/Properties/Config Sets

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM