单击 spring-context.xml 的引用定义时打开特定 class 而不是 bean 定义
Open specific class rather than bean definition when clicked ref definition of spring-context.xml
我的spring-context.xml
<bean id="aBean" class="com.example.A">
<constructor-arg ref="bBean"/>
</bean>
<bean id="bBean" class="com.example.B">
<!-- Properties -->
</bean>
假设我在 spring-context.xml
文件中有两个 bean。这里 bBean 使用 constructor
注入到 aBean 中。我正在使用众所周知的 ref
属性来注入 bBean.
当我 Ctrl + 在 bBean
上单击 我的鼠标光标移动到 [=18= 的 bean 定义] 在 XML.
当我单击 <constructor-arg ref="bBean"/>.
的 bBean
时如何打开 class com.example.B
任何 我不知道的快捷键。
使用IntelliJ IDEA 2016.1.2 Ultimate
搜索了一段时间后找到了答案
您可以点击Ctrl + Shift + B直接到class 当您单击由 ref
定义的 bean 时
操作名称是 Type Declaration
我的spring-context.xml
<bean id="aBean" class="com.example.A">
<constructor-arg ref="bBean"/>
</bean>
<bean id="bBean" class="com.example.B">
<!-- Properties -->
</bean>
假设我在 spring-context.xml
文件中有两个 bean。这里 bBean 使用 constructor
注入到 aBean 中。我正在使用众所周知的 ref
属性来注入 bBean.
当我 Ctrl + 在 bBean
上单击 我的鼠标光标移动到 [=18= 的 bean 定义] 在 XML.
当我单击 <constructor-arg ref="bBean"/>.
的 bBean
时如何打开 class com.example.B
任何 我不知道的快捷键。
使用IntelliJ IDEA 2016.1.2 Ultimate
搜索了一段时间后找到了答案
您可以点击Ctrl + Shift + B直接到class 当您单击由 ref
操作名称是 Type Declaration